Skip to content

Commit 7c4d907

Browse files
committed
Add sound detection to MStar
1 parent 48deb89 commit 7c4d907

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

custom_components/yi_hack/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
6262
CONF_WILL_MSG: mqtt_conf[CONF_WILL_MSG],
6363
CONF_TOPIC_MOTION_DETECTION_IMAGE: mqtt_conf[CONF_TOPIC_MOTION_DETECTION_IMAGE],
6464
}
65-
if (entry.data[CONF_HACK_NAME] == DEFAULT_BRAND) or (entry.data[CONF_HACK_NAME] == MSTAR):
65+
if (entry.data[CONF_HACK_NAME] == DEFAULT_BRAND):
6666
updated_data.update(**{
6767
CONF_RTSP_PORT: system_conf[CONF_RTSP_PORT],
6868
CONF_BABY_CRYING_MSG: mqtt_conf[CONF_BABY_CRYING_MSG],
6969
})
70-
elif (entry.data[CONF_HACK_NAME] == V5):
70+
elif (entry.data[CONF_HACK_NAME] == V5) or (entry.data[CONF_HACK_NAME] == MSTAR):
7171
updated_data.update(**{
7272
CONF_RTSP_PORT: system_conf[CONF_RTSP_PORT],
7373
CONF_TOPIC_SOUND_DETECTION: mqtt_conf[CONF_TOPIC_SOUND_DETECTION],

custom_components/yi_hack/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
"documentation": "https://github.com/roleoroleo/yi-hack_ha_integration",
88
"iot_class": "local_push",
99
"issue_tracker": "https://github.com/roleoroleo/yi-hack_ha_integration/issues",
10-
"version": "0.5.4",
10+
"version": "0.5.6",
1111
"zeroconf": ["_yi-hack._tcp.local."]
1212
}

0 commit comments

Comments
 (0)