Abort forked-daapd zeroconf flow if version < 27 (#35709)

* Change MediaPlayerDevice to MediaPlayerEntity

* Abort zeroconf if mtd-version < 27.0
This commit is contained in:
uvjustin authored and GitHub committed 2020-05-17 09:23:44 -04:00
1 parent 71d41cbb71
commit 47801e7350
2 files changed
+3 -3

No files matched your search

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