Skip to content

Commit

Permalink
fix(log): remove code from services debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
palazzem committed May 16, 2024
1 parent 524fa02 commit b11d7fc
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 b11d7fc

Please sign in to comment.