Make mqtt internal subscription a normal function (#118092)
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
This commit is contained in:
parent
ecd48cc447
commit
9be829ba1f
30 changed files with 140 additions and 83 deletions
|
@ -305,7 +305,7 @@ class MqttSensor(MqttEntity, RestoreSensor):
|
|||
|
||||
async def _subscribe_topics(self) -> None:
|
||||
"""(Re)Subscribe to topics."""
|
||||
await subscription.async_subscribe_topics(self.hass, self._sub_state)
|
||||
subscription.async_subscribe_topics_internal(self.hass, self._sub_state)
|
||||
|
||||
@callback
|
||||
def _value_is_expired(self, *_: datetime) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue