async def METHOD_NAME(self, hash):
    if self._attr_disable and self.gw is not None:
        await self.gw.stop()
        self.cancel_async_task(self.is_connected_task)
    else:
        self.create_async_task(self.connect_gw())