type hint
This commit is contained in:
@@ -73,7 +73,7 @@ class MotionLight(Hass):
|
||||
return timedelta()
|
||||
|
||||
@property
|
||||
def entity_state(self):
|
||||
def entity_state(self) -> bool:
|
||||
return self.get_state(self.entity) == 'on'
|
||||
|
||||
@entity_state.setter
|
||||
|
||||
Reference in New Issue
Block a user