Skip to content

Commit

Permalink
Fix issue#48 100% processor usage
Browse files Browse the repository at this point in the history
Bump version
  • Loading branch information
gazoodle committed Mar 16, 2022
1 parent 20eeee2 commit 01455e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions custom_components/gecko/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"domain": "gecko",
"name": "Gecko",
"version": "0.1.3",
"version": "0.1.4",
"documentation": "https://github.com/gazoodle/gecko-home-assistant",
"issue_tracker": "https://github.com/gazoodle/gecko-home-assistant/issues",
"iot_class": "local_push",
Expand All @@ -11,6 +11,6 @@
"@gazoodle"
],
"requirements": [
"geckolib==0.4.1"
"geckolib==0.4.2"
]
}
4 changes: 2 additions & 2 deletions custom_components/gecko/spa_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import asyncio
import logging

from geckolib import GeckoAsyncSpaMan, GeckoSpaEvent
from geckolib import GeckoAsyncSpaMan, GeckoSpaEvent, GeckoConstants
from homeassistant.config_entries import HomeAssistant, ConfigEntry
from .const import PLATFORMS, SENSOR, BUTTON
from queue import Queue
Expand Down Expand Up @@ -62,7 +62,7 @@ async def _queue_loop(self) -> None:
await self.reload()

finally:
await asyncio.sleep(0)
await asyncio.sleep(GeckoConstants.ASYNCIO_SLEEP_TIMEOUT_FOR_YIELD)

async def handle_event(self, event: GeckoSpaEvent, **kwargs) -> None:
"""Handle spa manager events."""
Expand Down

0 comments on commit 01455e8

Please sign in to comment.