Add SmartThings Light platform (#20652)

* Add SmartThings Light platform and tests

* Cleaned a few awk comments

* Updates per review feedback

* Switched to super

* Changes per review feedback
This commit is contained in:
Andrew Sayre authored and Paulus Schoutsen committed 2019-02-02 14:09:40 -08:00
1 parent 8988ee5b34
commit 785b42ecde
4 files changed
+518 -8

No files matched your search

+9 -8
View File
@@ -62,15 +62,16 @@ async def test_entity_and_device_attributes(hass, device_factory):
# Act
await _setup_platform(hass, device)
# Assert
entity = entity_registry.async_get('switch.switch_1')
assert entity
assert entity.unique_id == device.device_id
device_entry = device_registry.async_get_device(
entry = entity_registry.async_get('switch.switch_1')
assert entry
assert entry.unique_id == device.device_id
entry = device_registry.async_get_device(
{(DOMAIN, device.device_id)}, [])
assert device_entry
assert device_entry.name == device.label
assert device_entry.model == device.device_type_name
assert device_entry.manufacturer == 'Unavailable'
assert entry
assert entry.name == device.label
assert entry.model == device.device_type_name
assert entry.manufacturer == 'Unavailable'
async def test_turn_off(hass, device_factory):