question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sun2: Error on device update! From HA version 2021.5.0dev20210402

See original GitHub issue

I can’t use anymore this integration from this Dev version Log is:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 365, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 482, in async_device_update
    await task
  File "/config/custom_components/sun2/binary_sensor.py", line 284, in async_update
    cur_elev = astral_loc().solar_elevation(cur_dttm)
AttributeError: 'tuple' object has no attribute 'solar_elevation'

Regards

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
pbranlycommented, Apr 2, 2021

It works . Thanks Philippe

0reactions
pbranlycommented, Apr 2, 2021

I just tried to add your version but cannot with my IPad. For unknown reason I cannot make any modification from the IPad. i will try tomorrow from my PC Regards Phil

Read more comments on GitHub >

github_iconTop Results From Across the Web

2021.5: Stability, performance, triggers, color modes!
Improved database and start up handling, an updated look and feel for the integrations dashboard and color modes for lights!
Read more >
The ha-sun2 from pnbruckner - GithubHelp
sun2 : Error on device update! From HA version 2021.5.0dev20210402. I can't use anymore this integration from this Dev version
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found