dingusdk / ha-dukaone

HA integration for the Dukaone S6W ventilation heat exchanger
GNU General Public License v3.0
25 stars 10 forks source link

Fails to work with HA Core version 2022.40 #4

Closed steinaaj closed 2 years ago

steinaaj commented 2 years ago

I get the following failure from the log, after updating:

Unable to prepare setup for platform dukaone.fan: Platform not found (cannot import name 'SPEED_HIGH' from 'homeassistant.components.fan' (/usr/src/homeassistant/homeassistant/components/fan/init.py)).

rogerrb commented 2 years ago

I have the same problem, and find that the HIGH, LOW and MEDIUM speed settings are depreceated after Home Assistant 2022.3 according to the fan class documentation (https://github.com/home-assistant/core/commit/723dcbafca45267bf0d57016fc82e61beb69969f)

dingusdk commented 2 years ago

Updated version 1.0.6 should fix this

rogerrb commented 2 years ago

It works perfect. Thank you for the quick response. :)

larsbloch commented 2 years ago

Hey. Some simle syntax examples would be much apreciated.

I have some trouble with the new set_preset_mode Script example:

sequence:

How do i supply the correct speed The error i get is: "call service script/1649512423018. extra keys not allowed @ data['speed']"

dingusdk commented 2 years ago

speed should be changed to preset_mode You can see it here in the fan documentation