Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

None of the daily sensors is updating any more #56

Closed
JBecker32 opened this issue Jun 7, 2024 · 16 comments
Closed

None of the daily sensors is updating any more #56

JBecker32 opened this issue Jun 7, 2024 · 16 comments

Comments

@JBecker32
Copy link

Since I made updates yesterday to the HADailySensor and Home assistant core (2024.6.0?), none of the daily sensors is updateing anymore. Instead I get the following in the log file
2024-06-07 09:49:38.169 INFO (MainThread) [custom_components.daily] Updating Daily Sensor HoymilesMaxofDaykWh
2024-06-07 09:49:38.174 ERROR (MainThread) [homeassistant] Error doing job: Future exception was never retrieved (None)
Traceback (most recent call last):
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/daily/sensor.py", line 72, in
lambda event: self._handle_update( # pylint: disable=unnecessary-lambda
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/daily/sensor.py", line 102, in _handle_update
the_val = self.convert_to_float(input_state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/daily/sensor.py", line 155, in convert_to_float
return float(float_value)
^^^^^^^^^^^^^^^^^^
TypeError: float() argument must be a string or a real number, not 'State'

Any clue to what has happened?
BR, Jörg.

@raymond-w
Copy link

Same here after the update to 2024.6.0 yesterday.

@JBecker32
Copy link
Author

JBecker32 commented Jun 7, 2024

I have just noticed that the same error has already been reported in a reaction to fix #52. So this seems to be a problem with HADailySensor, not with core 2024.6.0 !?!

@Tntdruid
Copy link
Contributor

Tntdruid commented Jun 7, 2024

Same for me.

2024.4.4

@Giorsetti
Copy link

Same for me...

1 similar comment
@cobraviola
Copy link

Same for me...

@jeroenterheerdt
Copy link
Owner

Which version of daily are you all using? At least including that would make the 'same for me' kind of useful...

@cobraviola
Copy link

2024.4.4

@JBecker32
Copy link
Author

JBecker32 commented Jun 7, 2024

Updated yesterday, so the latest version ... after fix #52. 2024.4.4

@Giorsetti
Copy link

2024.4.4

@Janorei
Copy link

Janorei commented Jun 7, 2024

I've got the same Problem after updating the Daily Sensors to 2024.4.4

TypeError: float() argument must be a string or a real number, not 'State'
2024-06-07 19:46:12.409 ERROR (SyncWorker_4) [homeassistant] Error doing job: Future exception was never retrieved (None)
Traceback (most recent call last):
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/daily/sensor.py", line 72, in
lambda event: self._handle_update(
^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/daily/sensor.py", line 102, in _handle_update
the_val = self.convert_to_float(input_state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/daily/sensor.py", line 155, in convert_to_float
return float(float_value)
^^^^^^^^^^^^^^^^^^

@raymond-w
Copy link

I'm using 2024.4.4
Just updated to HA 2024.6.1
Same issue as with the previous version

@314159265358979323-h
Copy link

Same for me 2025.4.4

@Giorsetti
Copy link

Giorsetti commented Jun 8, 2024 via email

@JBecker32
Copy link
Author

Perfect fix, thank you, Jeroen!

@Tntdruid
Copy link
Contributor

Tntdruid commented Jun 8, 2024

Thanks for the fix.

@cobraviola
Copy link

Tank for the fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants