Clean up device update, add via-hub (#16659)
* Clean up device update, add via-hub * Test loading/saving data * Lint * Add to Hue" * Lint + tests
This commit is contained in:
parent
849a93e0a6
commit
b8257866f5
13 changed files with 269 additions and 78 deletions
|
@ -763,6 +763,11 @@ class MockEntity(entity.Entity):
|
|||
"""Return True if entity is available."""
|
||||
return self._handle('available')
|
||||
|
||||
@property
|
||||
def device_info(self):
|
||||
"""Info how it links to a device."""
|
||||
return self._handle('device_info')
|
||||
|
||||
def _handle(self, attr):
|
||||
"""Return attribute value."""
|
||||
if attr in self._values:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue