jfarmer08 / ha-sengledapi

Home Assistant Integration for Sengled Bulbs. This is a custom component to allow control of Sengled Bulbs in Homeassistant using the unofficial Sengled API. Please note this mimics the Sengled app and therefore Sengled may cut off access at anytime.
Apache License 2.0
104 stars 34 forks source link

[Bug] HA 2021.12.3 deprecates device_state_attributes #61

Closed thespad closed 2 years ago

thespad commented 2 years ago

Describe the bug

WARNING (MainThread) [homeassistant.helpers.entity] Entity light.bulb_1 (<class 'custom_components.sengledapi.light.SengledBulb'>) implements device_state_attributes. Please report it to the custom component author.

To Reproduce Steps to reproduce the behavior:

  1. Run HA 2021.12.3 with Sengled API component
  2. Examine HA logs

System configuration System: Docker HA Version: 2021.12.3 SengledApi Version: v0.2.1

configuration.yaml

sengledapi:
  username: "<email>"
  password: "<password>"
  country: "EU"

logger:
  default: warn
  logs:
    custom_components.sengledapi: warning

home-assistant.log

2021-12-18 20:32:06 WARNING (MainThread) [homeassistant.helpers.entity] Entity light.bulb_1 (<class 'custom_components.sengledapi.light.SengledBulb'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-18 20:32:06 WARNING (MainThread) [homeassistant.helpers.entity] Entity light.bulb_2 (<class 'custom_components.sengledapi.light.SengledBulb'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-18 20:32:06 WARNING (MainThread) [homeassistant.helpers.entity] Entity light.living_room_bulb_2 (<class 'custom_components.sengledapi.light.SengledBulb'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-18 20:32:06 WARNING (MainThread) [homeassistant.helpers.entity] Entity light.living_room_bulb_1 (<class 'custom_components.sengledapi.light.SengledBulb'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-18 20:32:06 WARNING (MainThread) [homeassistant.helpers.entity] Entity light.hall_bulb_1 (<class 'custom_components.sengledapi.light.SengledBulb'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-18 20:32:06 WARNING (MainThread) [homeassistant.helpers.entity] Entity light.master_bedroom_bulb_1 (<class 'custom_components.sengledapi.light.SengledBulb'>) implements device_state_attributes. Please report it to the custom component author.
Nameless11111 commented 2 years ago

I am new to this integration and am testing one light with it, which is a Z01-A19NAE26 bulb. I get the same warning.

Entity light.left_media_center_lamp_lml (<class 'custom_components.sengledapi.light.SengledBulb'>) implements device_state_attributes. Please report it to the custom component author.

I am unsure if this is related because I'm new to this integration, but a Device is not created, just an Entity.

I am using Home Assistant Docker 2022.2.2.