Change version check in forked-daapd zeroconf step (#35796)

This commit is contained in:
uvjustin authored and GitHub committed 2020-05-19 15:17:02 +02:00
1 parent a51372f7b3
commit 8c8feb95a9
2 files changed
+27 -3

No files matched your search

@@ -158,7 +158,8 @@ class ForkedDaapdFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
"""Prepare configuration for a discovered forked-daapd device."""
if not (
discovery_info.get("properties")
and float(discovery_info["properties"].get("mtd-version", 0)) >= 27.0
and int(discovery_info["properties"].get("mtd-version", "0").split(".")[0])
>= 27
and discovery_info["properties"].get("Machine Name")
):
return self.async_abort(reason="not_forked_daapd")