From da04028fa72538df34eb387442ca4700114b0af3 Mon Sep 17 00:00:00 2001 From: Stephan Uhle Date: Sat, 25 Mar 2023 21:26:33 +0000 Subject: [PATCH] Cleanup --- custom_components/mygekko/__init__.py | 2 +- custom_components/mygekko/entity.py | 1 - custom_components/mygekko/light.py | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/custom_components/mygekko/__init__.py b/custom_components/mygekko/__init__.py index 91415ff..4150335 100644 --- a/custom_components/mygekko/__init__.py +++ b/custom_components/mygekko/__init__.py @@ -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) diff --git a/custom_components/mygekko/entity.py b/custom_components/mygekko/entity.py index aa44a91..d1788ab 100644 --- a/custom_components/mygekko/entity.py +++ b/custom_components/mygekko/entity.py @@ -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): diff --git a/custom_components/mygekko/light.py b/custom_components/mygekko/light.py index 63eed23..9e427b4 100644 --- a/custom_components/mygekko/light.py +++ b/custom_components/mygekko/light.py @@ -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)