Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion custom_components/helios/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ async def async_update(self, event_time):
self.fetchPercent()

def fetchPercent(self):
time.sleep(2)
self._boost_time = self._client.get_variable("v00093", 3, conversion=int)
self._percent = self._client.get_variable("v00103", 3, conversion=int)
async_dispatcher_send(self._hass, SIGNAL_HELIOS_STATE_UPDATE)
10 changes: 4 additions & 6 deletions custom_components/helios/const.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import datetime
from homeassistant.const import CONF_HOST, CONF_NAME
from homeassistant.components.fan import (
SPEED_HIGH,
SPEED_LOW,
SPEED_MEDIUM,
SPEED_OFF
)

DOMAIN = 'helios'
DEFAULT_NAME = "Helios"

SPEED_OFF = "off"
SPEED_LOW = "low"
SPEED_MEDIUM = "medium"
SPEED_HIGH = "high"
SPEED_MAX = "max"

SIGNAL_HELIOS_STATE_UPDATE = "helios_state_update"
Expand Down