StyraHem / ShellyForHASS

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

[BUG] #630

Closed Cippo2019 closed 2 years ago

Cippo2019 commented 2 years ago

Environment ShellyForHASS release with the issue: 0.3.2 (never seen with the previous version) Last working ShellyForHASS release (if known): 0.3.1 Home Assistant Core release with the issue: core-2021.11.5 Operating environment: HA over OVA Describe the bug: after last update to 0.3.2 after some time i get this error and disappear after HA restart (11.5)

2021-12-16 15:34:36 ERROR (Update loop) [pyShelly] Error update loop, 'NoneType' object has no attribute 'addresses', Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/pyShelly/init.py", line 374, in _update_loop self.check_by_ip() File "/usr/local/lib/python3.9/site-packages/pyShelly/init.py", line 241, in check_by_ip ip_addr = self._mdns.get_ip(data['id'].split('|')) File "/usr/local/lib/python3.9/site-packages/pyShelly/mdns.py", line 20, in get_ip for addr in info.addresses: AttributeError: 'NoneType' object has no attribute 'addresses' Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/pyShelly/init.py", line 374, in _update_loop self.check_by_ip() File "/usr/local/lib/python3.9/site-packages/pyShelly/init.py", line 241, in check_by_ip ip_addr = self._mdns.get_ip(data['id'].split('|')) File "/usr/local/lib/python3.9/site-packages/pyShelly/mdns.py", line 20, in get_ip for addr in info.addresses: AttributeError: 'NoneType' object has no attribute 'addresses'

Steps to Reproduce waiting some time

Expected behavior

Screenshots

Additional context

thanks a lot

Tiziano

Cippo2019 commented 2 years ago

Hi Hakana thanks for FIXED :-)

do you know more or less when 0.3.3 will be released ?

wbr Tiziano

hakana commented 2 years ago

Now 😉

Från: Cippo2019 @.> Skickat: den 16 december 2021 22:39 Till: StyraHem/ShellyForHASS @.> Kopia: Håkan Åkerberg @.>; Assign @.> Ämne: Re: [StyraHem/ShellyForHASS] [BUG] (Issue #630)

Hi Hakana thanks for FIXED :-)

do you know more or less when 0.3.3 will be released ?

wbr Tiziano

— Reply to this email directly, view it on GitHubhttps://github.com/StyraHem/ShellyForHASS/issues/630#issuecomment-996213841, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAI5KDXD5M3IS6SO4YSA7LTURJL6TANCNFSM5KGPFKCQ. You are receiving this because you were assigned.Message ID: @.**@.>>

Cippo2019 commented 2 years ago

hahah ok too fast :-) thanks a lot for your effort !

hakana commented 2 years ago

Hi,

Ok, I will do it in slow motion next time 😉

Från: Cippo2019 @.> Skickat: den 16 december 2021 22:43 Till: StyraHem/ShellyForHASS @.> Kopia: Håkan Åkerberg @.>; Assign @.> Ämne: Re: [StyraHem/ShellyForHASS] [BUG] (Issue #630)

hahah ok too fast :-) thanks a lot for your effort !

— Reply to this email directly, view it on GitHubhttps://github.com/StyraHem/ShellyForHASS/issues/630#issuecomment-996216033, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAI5KDSGFAZZVOF7SKRWIJ3URJMMZANCNFSM5KGPFKCQ. You are receiving this because you were assigned.Message ID: @.**@.>>

Cippo2019 commented 2 years ago

sorry for late in this close ! it works perfectly (sorry again)