Skip to content

Commit

Permalink
Add missing commit
Browse files Browse the repository at this point in the history
  • Loading branch information
niceboy committed Mar 7, 2024
1 parent cdb489c commit 6c0917d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/aqara_gateway/core/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ def stop():

def start(self, hass: HomeAssistant, config_entry: ConfigEntry):
if (MAJOR_VERSION, MINOR_VERSION) >= (2023, 3):
config_entry.async_create_background_task(hass, self.run(), f"{DOMAIN} gateway.run")
config_entry.async_create_background_task(hass, self.async_run(), f"{DOMAIN} gateway.async_run")
else:
self.main_task = hass.loop.create_task(self.run())
self.main_task = hass.loop.create_task(self.async_run())

async def async_run(self):
""" Main thread loop. """
Expand Down

0 comments on commit 6c0917d

Please sign in to comment.