Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanU committed Mar 25, 2023
1 parent 9c6de1d commit da04028
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion custom_components/mygekko/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):

session = async_get_clientsession(hass)
client = MyGekkoApiClient(
username, apikey, gekkoid, session, True
username, apikey, gekkoid, session
)

coordinator = MyGekkoDataUpdateCoordinator(hass, client=client)
Expand Down
1 change: 0 additions & 1 deletion custom_components/mygekko/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ def __init__(self, coordinator, entity: Entity, platform: str):
super().__init__(coordinator)
self.entity = entity
self._attr_unique_id = platform + "_" + self.entity.id
print(self.unique_id)

@property
def device_info(self):
Expand Down
1 change: 0 additions & 1 deletion custom_components/mygekko/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ async def async_setup_entry(hass, entry, async_add_devices):
"""Setup light platform."""
coordinator = hass.data[DOMAIN][entry.entry_id]
lights = coordinator.api.get_lights()
print(lights)
if lights is not None:
async_add_devices(MyGekkoLight(coordinator, light) for light in lights)

Expand Down

0 comments on commit da04028

Please sign in to comment.