Use correct mobile id

This commit is contained in:
Andre Basche 2024-03-29 13:21:49 +01:00
parent 11da4ebfbc
commit 53691e383e
2 changed files with 7 additions and 5 deletions

View file

@ -16,6 +16,7 @@ from pyhon.exceptions import NoAuthenticationException
_LOGGER = logging.getLogger(__name__)
# pylint: disable=too-many-instance-attributes
class Hon:
def __init__(
self,
@ -124,7 +125,7 @@ class Hon:
for appliance in await api.load_appliances():
await self._create_appliance(appliance, api)
if not self._mqtt_client:
self._mqtt_client = await MQTTClient(self).create()
self._mqtt_client = await MQTTClient(self, self._mobile_id).create()
def subscribe_updates(self, notify_function: Callable[[Any], None]) -> None:
self._notify_function = notify_function