Allow toggles (switches) state to be None (#64621)
This commit is contained in:
parent
01fbc4257b
commit
176f03d4ac
14 changed files with 45 additions and 32 deletions
|
@ -48,7 +48,7 @@ class ModbusFan(BaseSwitch, FanEntity):
|
|||
await self.async_turn(self.command_on)
|
||||
|
||||
@property
|
||||
def is_on(self) -> bool:
|
||||
def is_on(self) -> bool | None:
|
||||
"""Return true if fan is on.
|
||||
|
||||
This is needed due to the ongoing conversion of fan.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue