Skip to content

Commit

Permalink
rename binary_sensor map
Browse files Browse the repository at this point in the history
  • Loading branch information
jontofront committed Oct 8, 2024
1 parent 7ca145e commit be6b124
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions custom_components/econet300/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from .const import (
BINARY_SENSOR_MAP,
DOMAIN,
ENTITY_DEVICE_BINARY_CLASS_MAP,
ENTITY_BINARY_DEVICE_CLASS_MAP,
ENTITY_ICON,
ENTITY_ICON_OFF,
SERVICE_API,
Expand Down Expand Up @@ -80,7 +80,7 @@ def create_binary_entity_description(key: str) -> EconetBinarySensorEntityDescri
entity_description = EconetBinarySensorEntityDescription(
key=key,
translation_key=camel_to_snake(map_key),
device_class=ENTITY_DEVICE_BINARY_CLASS_MAP.get(map_key, None),
device_class=ENTITY_BINARY_DEVICE_CLASS_MAP.get(map_key, None),
icon=ENTITY_ICON.get(map_key, None),
icon_off=ENTITY_ICON_OFF.get(map_key, None),
)
Expand Down
2 changes: 1 addition & 1 deletion custom_components/econet300/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
#############################
###### BINARY SENSORS #######
#############################
ENTITY_DEVICE_BINARY_CLASS_MAP = {
ENTITY_BINARY_DEVICE_CLASS_MAP = {
"lighter": BinarySensorDeviceClass.RUNNING,
"weatherControl": BinarySensorDeviceClass.RUNNING,
"unseal": BinarySensorDeviceClass.RUNNING,
Expand Down

0 comments on commit be6b124

Please sign in to comment.