Use _attr_force_update in tasmota (#77900)
This commit is contained in:
parent
6864f43986
commit
19b85851a1
3 changed files with 2 additions and 15 deletions
|
@ -58,6 +58,7 @@ class TasmotaBinarySensor(
|
|||
):
|
||||
"""Representation a Tasmota binary sensor."""
|
||||
|
||||
_attr_force_update = True
|
||||
_tasmota_entity: tasmota_switch.TasmotaSwitch
|
||||
|
||||
def __init__(self, **kwds: Any) -> None:
|
||||
|
@ -98,11 +99,6 @@ class TasmotaBinarySensor(
|
|||
|
||||
self.async_write_ha_state()
|
||||
|
||||
@property
|
||||
def force_update(self) -> bool:
|
||||
"""Force update."""
|
||||
return True
|
||||
|
||||
@property
|
||||
def is_on(self) -> bool | None:
|
||||
"""Return true if the binary sensor is on."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue