ualex73 / monitor_docker

Monitor Docker containers from Home Assistant
Apache License 2.0
267 stars 34 forks source link

[BUG] Sensor property renamed in 2021.12.0+ #82

Closed firstof9 closed 2 years ago

firstof9 commented 2 years ago

Error:

(<class 'custom_components.monitor_docker.sensor.DockerSensor'>) implements device_state_attributes. Please report it to the custom component author.

device_state_attributes needs to be changed to extra_state_attributes.

ualex73 commented 2 years ago

Thanks for reporting, can you try out v1.13-beta2?

firstof9 commented 2 years ago

Trying it out now.

firstof9 commented 2 years ago
2021-12-06 06:46:15 ERROR (MainThread) [homeassistant.components.switch] Error while setting up monitor_docker platform for switch
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/monitor_docker/switch.py", line 109, in async_setup_platform
    if includeContainer:
UnboundLocalError: local variable 'includeContainer' referenced before assignment
2021-12-06 06:46:15 ERROR (MainThread) [homeassistant.components.switch] Error while setting up monitor_docker platform for switch
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/monitor_docker/switch.py", line 109, in async_setup_platform
    if includeContainer:
UnboundLocalError: local variable 'includeContainer' referenced before assignment
ualex73 commented 2 years ago

oeps, that's a typo (unrelated to your issue) ... can you try 1.13-beta3? Should fix it now

firstof9 commented 2 years ago

Looks good no errors. Cheers! 🍻

ualex73 commented 2 years ago

Cool :-) Then i will release this v1.13-beta3 soon as an official one.

Op ma 6 dec. 2021 om 15:00 schreef Chris @.***>:

Looks good no errors. Cheers! 🍻

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ualex73/monitor_docker/issues/82#issuecomment-986802236, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQASXBJ353XYXKYIQHE3ULUPS6ZHANCNFSM5JNPGZQQ .