mirror of
https://github.com/Andre0512/pyhOn.git
synced 2025-06-03 16:18:57 -04:00
Use correct mobile id
This commit is contained in:
parent
11da4ebfbc
commit
53691e383e
2 changed files with 7 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue