Skip to content

Commit

Permalink
fix(log): remove code from services debug logs (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
palazzem authored May 16, 2024
1 parent 08226c9 commit 2d71539
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/econnect_metronet/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async def arm_sectors(hass: HomeAssistant, config_id: str, call: ServiceCall):
device = hass.data[DOMAIN][config_id][KEY_DEVICE]
sectors = [device._sectors[x.split(".")[1]] for x in call.data["entity_id"]]
code = call.data.get("code")
_LOGGER.debug(f"Service | Arming sectors: {sectors} with code {code})")
_LOGGER.debug(f"Service | Arming sectors: {sectors}")
await hass.async_add_executor_job(device.arm, code, sectors)


Expand All @@ -21,5 +21,5 @@ async def disarm_sectors(hass: HomeAssistant, config_id: str, call: ServiceCall)
device = hass.data[DOMAIN][config_id][KEY_DEVICE]
sectors = [device._sectors[x.split(".")[1]] for x in call.data["entity_id"]]
code = call.data.get("code")
_LOGGER.debug(f"Service | Arming sectors: {sectors} with code {code})")
_LOGGER.debug(f"Service | Disarming sectors: {sectors}")
await hass.async_add_executor_job(device.disarm, code, sectors)

0 comments on commit 2d71539

Please sign in to comment.