JohNan / homeassistant-wellbeing

Get the status from your Electrolux devices connected to Wellbeing
MIT License
75 stars 20 forks source link

device_state_attribute and loop deprecated #22

Closed spoorcrystallogy closed 2 years ago

spoorcrystallogy commented 2 years ago

Running 2021.12 the entity class device_state_attribute and keyword argument loop are deprecated

2021-12-12 00:25:46 WARNING (MainThread) [homeassistant.helpers.frame] Detected integration that called async_timeout.timeout with loop keyword argument. The loop keyword argument is deprecated and calls will fail after Home Assistant 2022.2. Please report issue to the custom component author for wellbeing using this method at custom_components/wellbeing/api.py, line 395: async with async_timeout.timeout(TIMEOUT, loop=asyncio.get_event_loop()):
2021-12-12 00:25:47 WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.wellbeing_temp (<class 'custom_components.wellbeing.sensor.WellbeingSensor'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-12 00:25:47 WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.wellbeing_pm1 (<class 'custom_components.wellbeing.sensor.WellbeingSensor'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-12 00:25:47 WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.wellbeing_tvoc (<class 'custom_components.wellbeing.sensor.WellbeingSensor'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-12 00:25:47 WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.wellbeing_pm2_5 (<class 'custom_components.wellbeing.sensor.WellbeingSensor'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-12 00:25:47 WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.wellbeing_pm10 (<class 'custom_components.wellbeing.sensor.WellbeingSensor'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-12 00:25:47 WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.wellbeing_humidity (<class 'custom_components.wellbeing.sensor.WellbeingSensor'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-12 00:25:47 WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.wellbeing_workmode (<class 'custom_components.wellbeing.sensor.WellbeingSensor'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-12 00:25:47 WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.wellbeing_filterlife (<class 'custom_components.wellbeing.sensor.WellbeingSensor'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-12 00:25:47 WARNING (MainThread) [homeassistant.helpers.entity] Entity sensor.wellbeing_co2 (<class 'custom_components.wellbeing.sensor.WellbeingSensor'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-12 00:25:47 WARNING (MainThread) [homeassistant.helpers.entity] Entity fan.wellbeing_fanspeed (<class 'custom_components.wellbeing.fan.WellbeingFan'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-12 00:25:47 WARNING (MainThread) [homeassistant.helpers.entity] Entity binary_sensor.wellbeing_uilight (<class 'custom_components.wellbeing.binary_sensor.WellbeingBinarySensor'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-12 00:25:47 WARNING (MainThread) [homeassistant.helpers.entity] Entity binary_sensor.wellbeing_ionizer (<class 'custom_components.wellbeing.binary_sensor.WellbeingBinarySensor'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-12 00:25:47 WARNING (MainThread) [homeassistant.helpers.entity] Entity binary_sensor.wellbeing_status (<class 'custom_components.wellbeing.binary_sensor.WellbeingBinarySensor'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-12 00:25:47 WARNING (MainThread) [homeassistant.helpers.entity] Entity binary_sensor.wellbeing_connectionstate (<class 'custom_components.wellbeing.binary_sensor.WellbeingBinarySensor'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-12 00:25:47 WARNING (MainThread) [homeassistant.helpers.entity] Entity binary_sensor.wellbeing_safetylock (<class 'custom_components.wellbeing.binary_sensor.WellbeingBinarySensor'>) implements device_state_attributes. Please report it to the custom component author.
JohNan commented 2 years ago

Thank you. I will patch it asap.

GGORG0 commented 2 years ago

also this is deprecated

Logger: homeassistant.helpers.frame
Source: helpers/frame.py:103
First occurred: 3:55:57 PM (1 occurrences)
Last logged: 3:55:57 PM

Detected integration that called async_timeout.timeout with loop keyword argument. The loop keyword argument is deprecated and calls will fail after Home Assistant 2022.2. Please report issue to the custom component author for wellbeing using this method at custom_components/wellbeing/api.py, line 395: async with async_timeout.timeout(TIMEOUT, loop=asyncio.get_event_loop()):

@JohNan

JohNan commented 2 years ago

Should be fixed now!