Do not force update mqtt device_tracker (#98838)

This commit is contained in:
Jan Bouwhuis 2023-08-24 20:09:14 +02:00 committed by GitHub
parent a5cced1da9
commit 948b34b045
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 1 deletions

View file

@ -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)