Miscellaneous ESPHome cleanups (#19425)

This commit is contained in:
Otto Winter authored and Martin Hjelmare committed 2018-12-18 19:04:50 +01:00
1 parent c0ae7b1a49
commit 7317b1bb8b
3 files changed
+8 -2

No files matched your search

@@ -47,6 +47,11 @@ class EsphomeSwitch(EsphomeEntity, SwitchDevice):
"""Return the icon."""
return self._static_info.icon
@property
def assumed_state(self) -> bool:
"""Return true if we do optimistic updates."""
return self._static_info.optimistic
@property
def is_on(self):
"""Return true if the switch is on."""