Skip to content

Commit

Permalink
feat: add missing service icons
Browse files Browse the repository at this point in the history
  • Loading branch information
bramstroker committed Dec 26, 2024
1 parent 705a40d commit 1c311a4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
10 changes: 5 additions & 5 deletions custom_components/powercalc/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,15 +191,15 @@ class UnitPrefix(StrEnum):
ATTR_SOURCE_DOMAIN = "source_domain"

SERVICE_ACTIVATE_PLAYBOOK = "activate_playbook"
SERVICE_STOP_PLAYBOOK = "stop_playbook"
SERVICE_GET_ACTIVE_PLAYBOOK = "get_active_playbook"
SERVICE_RESET_ENERGY = "reset_energy"
SERVICE_INCREASE_DAILY_ENERGY = "increase_daily_energy"
SERVICE_CALIBRATE_UTILITY_METER = "calibrate_utility_meter"
SERVICE_CALIBRATE_ENERGY = "calibrate_energy"
SERVICE_SWITCH_SUB_PROFILE = "switch_sub_profile"
SERVICE_CHANGE_GUI_CONFIGURATION = "change_gui_config"
SERVICE_GET_ACTIVE_PLAYBOOK = "get_active_playbook"
SERVICE_GET_GROUP_ENTITIES = "get_group_entities"
SERVICE_INCREASE_DAILY_ENERGY = "increase_daily_energy"
SERVICE_RESET_ENERGY = "reset_energy"
SERVICE_STOP_PLAYBOOK = "stop_playbook"
SERVICE_SWITCH_SUB_PROFILE = "switch_sub_profile"

SIGNAL_POWER_SENSOR_STATE_CHANGE = "powercalc_power_sensor_state_change"

Expand Down
10 changes: 6 additions & 4 deletions custom_components/powercalc/icons.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
"services": {
"reset_energy": "mdi:restore",
"activate_playbook": "mdi:play",
"calibrate_utility_meter": "mdi:wrench",
"calibrate_energy": "mdi:wrench",
"change_gui_config": "mdi:cogs",
"get_active_playbook": "mdi:book-open-variant-outline",
"get_group_entities": "mdi:format-list-group",
"increase_daily_energy": "mdi:numeric",
"activate_playbook": "mdi:play",
"reset_energy": "mdi:restore",
"stop_playbook": "mdi:stop",
"switch_sub_profile": "mdi:toggle-switch",
"change_gui_config": "mdi:cogs"
"switch_sub_profile": "mdi:toggle-switch"
}
}

0 comments on commit 1c311a4

Please sign in to comment.