We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdb489c commit 6c0917dCopy full SHA for 6c0917d
custom_components/aqara_gateway/core/gateway.py
@@ -132,9 +132,9 @@ def stop():
132
133
def start(self, hass: HomeAssistant, config_entry: ConfigEntry):
134
if (MAJOR_VERSION, MINOR_VERSION) >= (2023, 3):
135
- 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")
136
else:
137
- self.main_task = hass.loop.create_task(self.run())
+ self.main_task = hass.loop.create_task(self.async_run())
138
139
async def async_run(self):
140
""" Main thread loop. """
0 commit comments