Do not force update mqtt device_tracker (#98838)
This commit is contained in:
parent
a5cced1da9
commit
948b34b045
2 changed files with 26 additions and 1 deletions
|
@ -165,6 +165,11 @@ class MqttDeviceTracker(MqttEntity, TrackerEntity):
|
|||
},
|
||||
)
|
||||
|
||||
@property
|
||||
def force_update(self) -> bool:
|
||||
"""Do not force updates if the state is the same."""
|
||||
return False
|
||||
|
||||
async def _subscribe_topics(self) -> None:
|
||||
"""(Re)Subscribe to topics."""
|
||||
await subscription.async_subscribe_topics(self.hass, self._sub_state)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue