Device type garage for binary sensor garage_door (#23345)

* Switch binary sensor to garage for garage_door

* Add test for cover garage device type
This commit is contained in:
Joakim Plate authored and Paulus Schoutsen committed 2019-04-24 09:56:22 -07:00
1 parent 843bad83fa
commit 62fcb1895e
2 files changed
+3 -2

No files matched your search

@@ -602,7 +602,7 @@ async def test_device_class_switch(hass, device_class, google_type):
@pytest.mark.parametrize("device_class,google_type", [
('door', 'action.devices.types.DOOR'),
('garage_door', 'action.devices.types.SENSOR'),
('garage_door', 'action.devices.types.GARAGE'),
('lock', 'action.devices.types.SENSOR'),
('opening', 'action.devices.types.SENSOR'),
('window', 'action.devices.types.SENSOR'),
@@ -646,6 +646,7 @@ async def test_device_class_binary_sensor(hass, device_class, google_type):
@pytest.mark.parametrize("device_class,google_type", [
('non_existing_class', 'action.devices.types.BLINDS'),
('door', 'action.devices.types.DOOR'),
('garage', 'action.devices.types.GARAGE'),
])
async def test_device_class_cover(hass, device_class, google_type):
"""Test that a binary entity syncs to the correct device type."""