FrancisLab / hass-climate-scheduler

A Home Assistant component to define climate profiles and facilitate automation of climate entities.
MIT License
23 stars 2 forks source link

InputSelect constructor from yaml config #7

Closed pascalrheaume closed 1 year ago

pascalrheaume commented 2 years ago

Following update to homeassistant core to InputSelect class (https://github.com/home-assistant/core/commit/b0d033ef29abaf5ef8265d596cdaa3da8c124695)

self._profile_selector = InputSelect(selector_config) in switch.py line 389 gives this error: File "/usr/src/homeassistant/homeassistant/components/input_select/init.py", line 296, in extra_state_attributes return {ATTR_EDITABLE: self.editable} AttributeError: 'InputSelect' object has no attribute 'editable'

Fixed it by calling self._profile_selector = InputSelect.from_yaml(selector_config)

stoyanmarinov commented 2 years ago

This has been bugging me for a while. Thanks for the patch!

FrancisLab commented 1 year ago

I've been falling behind on updating my Home Assistant instance lately & had missed this issue. Thanks @pascalrheaume, I'll commit your suggested fix later today.

jamesdeeen commented 1 year ago

can you please bump up the hacs version, so that the fix is show as an update inside hacs (current version is v0.1.3 from Jun 15, 2021) btw, I love your climate scheduler, it has the best integration into home asstant and is flexible enough to cover all my different heating scenarios. greetings from germany. thx

FrancisLab commented 1 year ago

@jamesdeeen done! Thanks for the good words!