StyraHem / ShellyForHASS

Shelly smart home platform for Home Assistant
MIT License
619 stars 111 forks source link

[BUG] Shelly1 implements device_state_attributes #623

Closed michelotten closed 2 years ago

michelotten commented 2 years ago

Environment

Describe the bug

Getting a request to create a bug report, see below details.

2021-12-13 08:39:16 WARNING (MainThread) [homeassistant.helpers.entity] Entity binary_sensor.shelly1_gang (<class 'custom_components.shelly.binary_sensor.ShellySwitch'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-13 08:39:16 WARNING (MainThread) [homeassistant.helpers.entity] Entity switch.shelly1_gang (<class 'custom_components.shelly.switch.ShellySwitch'>) implements device_state_attributes. Please report it to the custom component author.

Steps to Reproduce

Above is happening with a shell 1 device.

Expected behavior

Screenshots

Traceback/Error logs

2021-12-13 08:39:16 WARNING (MainThread) [homeassistant.helpers.entity] Entity binary_sensor.shelly1_gang (<class 'custom_components.shelly.binary_sensor.ShellySwitch'>) implements device_state_attributes. Please report it to the custom component author.
2021-12-13 08:39:16 WARNING (MainThread) [homeassistant.helpers.entity] Entity switch.shelly1_gang (<class 'custom_components.shelly.switch.ShellySwitch'>) implements device_state_attributes. Please report it to the custom component author.

Additional context

hakana commented 2 years ago

Will be fixed in the next release 0.3.3