Skip to content

Commit

Permalink
Fix bugs introduced by core feedback PR (#393)
Browse files Browse the repository at this point in the history
  • Loading branch information
iMicknl authored Feb 21, 2021
1 parent 744f920 commit c4acc51
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
)
from homeassistant.const import TEMP_CELSIUS

from ..tahoma_device import TahomaEntity
from ..tahoma_entity import TahomaEntity

COMMAND_SET_HEATING_LEVEL = "setHeatingLevel"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
)
from homeassistant.const import ATTR_TEMPERATURE, TEMP_CELSIUS

from ..tahoma_device import TahomaEntity
from ..tahoma_entity import TahomaEntity

BOOST_ON_STATE = "on"
BOOST_OFF_STATE = "off"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from homeassistant.const import ATTR_TEMPERATURE, TEMP_CELSIUS

from ..coordinator import TahomaDataUpdateCoordinator
from ..tahoma_device import TahomaEntity
from ..tahoma_entity import TahomaEntity

_LOGGER = logging.getLogger(__name__)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from homeassistant.helpers.event import async_track_state_change

from ..coordinator import TahomaDataUpdateCoordinator
from ..tahoma_device import TahomaEntity
from ..tahoma_entity import TahomaEntity

_LOGGER = logging.getLogger(__name__)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
)
from homeassistant.const import TEMP_CELSIUS

from ..tahoma_device import TahomaEntity
from ..tahoma_entity import TahomaEntity

_LOGGER = logging.getLogger(__name__)

Expand Down
5 changes: 3 additions & 2 deletions custom_components/tahoma/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import homeassistant.util.color as color_util

from .const import COMMAND_OFF, COMMAND_ON, CORE_ON_OFF_STATE, DOMAIN
from .coordinator import TahomaDataUpdateCoordinator
from .tahoma_entity import TahomaEntity

_LOGGER = logging.getLogger(__name__)
Expand Down Expand Up @@ -57,9 +58,9 @@ async def async_setup_entry(hass, entry, async_add_entities):
class TahomaLight(TahomaEntity, LightEntity):
"""Representation of a TaHoma Light."""

def __init__(self, tahoma_device, controller):
def __init__(self, device_url: str, coordinator: TahomaDataUpdateCoordinator):
"""Initialize a device."""
super().__init__(tahoma_device, controller)
super().__init__(device_url, coordinator)
self._effect = None

@property
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
)
from homeassistant.const import ATTR_TEMPERATURE, STATE_OFF, STATE_ON, TEMP_CELSIUS

from ..tahoma_device import TahomaEntity
from ..tahoma_entity import TahomaEntity

CORE_MAXIMAL_TEMPERATURE_MANUAL_MODE_STATE = "core:MaximalTemperatureManualModeState"
CORE_MINIMAL_TEMPERATURE_MANUAL_MODE_STATE = "core:MinimalTemperatureManualModeState"
Expand Down

0 comments on commit c4acc51

Please sign in to comment.