Skip to content

Commit

Permalink
fix uniq
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Mamontov committed Aug 16, 2021
1 parent 0bfae93 commit 75668a1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions custom_components/miwifi/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ def __init__(self, hass: HomeAssistant, luci: LuciData, code: str, data: dict) -

self.entity_id = _generate_entity_id(
ENTITY_ID_FORMAT,
"{}_{}".format(luci.api.device_data["name"], code),
hass = hass
"{}_{}".format(luci.api.device_data["name"], code)
)

@property
Expand Down
3 changes: 1 addition & 2 deletions custom_components/miwifi/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ def __init__(self, hass: HomeAssistant, luci: LuciData, code: str, data: dict) -

self.entity_id = _generate_entity_id(
ENTITY_ID_FORMAT,
"{}_{}".format(luci.api.device_data["name"], code),
hass = hass
"{}_{}".format(luci.api.device_data["name"], code)
)

@property
Expand Down
3 changes: 1 addition & 2 deletions custom_components/miwifi/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ def __init__(self, hass: HomeAssistant, luci: LuciData, code: str, data: dict) -

self.entity_id = _generate_entity_id(
ENTITY_ID_FORMAT,
"{}_{}".format(luci.api.device_data["name"], code),
hass = hass
"{}_{}".format(luci.api.device_data["name"], code)
)

@property
Expand Down
3 changes: 1 addition & 2 deletions custom_components/miwifi/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ def __init__(self, hass: HomeAssistant, luci: LuciData, code: str, data: dict) -

self.entity_id = _generate_entity_id(
ENTITY_ID_FORMAT,
"{}_{}".format(luci.api.device_data["name"], code),
hass = hass
"{}_{}".format(luci.api.device_data["name"], code)
)

@property
Expand Down

0 comments on commit 75668a1

Please sign in to comment.