Add binary sensor support to the Flo integration (#38267)

* update device

* add binary sensor

* updates post rebase

* fix entity type post rebase

* fix post rebase

* fix add entities

* fix name

* review comments
This commit is contained in:
David F. Mulcahey authored and GitHub committed 2020-08-13 07:26:47 -04:00
1 parent 03676693ce
commit 86aa758ecd
5 files changed
+108 -1

No files matched your search

+4
View File
@@ -41,6 +41,10 @@ async def test_device(hass, config_entry, aioclient_mock_fixture, aioclient_mock
assert device.manufacturer == "Flo by Moen"
assert device.device_name == "Flo by Moen flo_device_075_v2"
assert device.rssi == -47
assert device.pending_info_alerts_count == 0
assert device.pending_critical_alerts_count == 0
assert device.pending_warning_alerts_count == 2
assert device.has_alerts is True
call_count = aioclient_mock.call_count