Fix mysensors platforms version requirement (#5942)

* Notify and device tracker platforms require mysensors version 2.0 or
  greater.
This commit is contained in:
Martin Hjelmare authored and Pascal Vizeli committed 2017-02-13 11:23:28 +01:00
1 parent 9a5618fe96
commit b6404d70ec
2 files changed
+4

No files matched your search

@@ -55,6 +55,8 @@ def setup_scanner(hass, config, see, discovery_info=None):
gateways = hass.data.get(mysensors.MYSENSORS_GATEWAYS)
for gateway in gateways:
if float(gateway.protocol_version) < 2.0:
continue
gateway.platform_callbacks.append(mysensors_callback)
return True