Skip to content

Commit 1d8161f

Browse files
author
guoping.liu
committed
update zero manager for zigbee2mqtt service
1 parent 2594916 commit 1d8161f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

supervisor/zero_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ def start(self, ip_address: str) -> bool:
8888
# Merge properties and add zigbee2mqtt port if service is running
8989
properties: Dict[str, str] = dict(self._properties)
9090
try:
91-
if util.is_service_running("zigbee2mqtt.service"):
92-
properties["zigbee2mqtt_port"] = "8099"
91+
if util.is_service_enabled("zigbee2mqtt.service"):
92+
properties["z2m_port"] = "8099"
9393
except Exception as e:
9494
logger.warning(f"Failed checking zigbee2mqtt service status: {e}")
9595

0 commit comments

Comments
 (0)