Skip to content

Commit

Permalink
remove logger entries
Browse files Browse the repository at this point in the history
  • Loading branch information
itchannel committed Jul 26, 2022
1 parent 9cd753d commit 46f8c3a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 4 additions & 2 deletions custom_components/apex/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ async def _async_update_data(self):
data = await self._hass.async_add_executor_job(
self.apex.status # Fetch new status
)
_LOGGER.debug("Refreshing Now")
_LOGGER.debug(data)
#_LOGGER.debug("Refreshing Now")
#_LOGGER.debug(data)

return data
except Exception as ex:
Expand Down Expand Up @@ -159,6 +159,8 @@ def device_info(self):
return {
"identifiers": {(DOMAIN, self.coordinator.deviceip)},
"name": f"Apex Controller ({self.coordinator.deviceip})",
"hw_version": self.coordinator.data["system"]["hardware"],
"sw_version": self.coordinator.data["system"]["software"],
"manufacturer": MANUFACTURER,
"test": "TEST"
}
Expand Down
1 change: 0 additions & 1 deletion custom_components/apex/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ async def async_setup_entry(hass, config_entry, async_add_entities):

for value in entry.data["inputs"]:
sensor = ApexSensor(entry, value, config_entry.options)
_LOGGER.debug(sensor.coordinator.data)
async_add_entities([sensor], True)


Expand Down
3 changes: 0 additions & 3 deletions custom_components/apex/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@
async def async_setup_entry(hass, config_entry, async_add_entities):
"""Add the Switch from the config."""
entry = hass.data[DOMAIN][config_entry.entry_id]
_LOGGER.debug(entry.data)

for value in entry.data["outputs"]:
_LOGGER.debug(value)
sw = Switch(entry, value, config_entry.options)
async_add_entities([sw], False)

Expand Down Expand Up @@ -60,7 +58,6 @@ def name(self):

@property
def device_id(self):
_LOGGER.debug(self.device_id)
return self.device_id

@property
Expand Down

0 comments on commit 46f8c3a

Please sign in to comment.