Comments (8)
Count me in also.
from nordpool.
Same here stopped working
Logger: homeassistant.util.logging
Source: util/logging.py:95
First occurred: 4:04:49 PM (1 occurrences)
Last logged: 4:04:49 PM
Exception in handle_new_hr when dispatching 'nordpool_update_hour': () Traceback (most recent call last): File "/usr/local/lib/python3.12/statistics.py", line 327, in _exact_ratio return (x.numerator, x.denominator) ^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'numerator' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/config/custom_components/nordpool/sensor.py", line 492, in handle_new_hr self._update() File "/config/custom_components/nordpool/sensor.py", line 340, in _update self._average = mean(today) ^^^^^^^^^^^ File "/usr/local/lib/python3.12/statistics.py", line 484, in mean T, total, n = _sum(data) ^^^^^^^^^^ File "/usr/local/lib/python3.12/statistics.py", line 193, in _sum for n, d in map(_exact_ratio, values): File "/usr/local/lib/python3.12/statistics.py", line 330, in _exact_ratio raise TypeError(msg) TypeError: can't convert type 'NoneType' to numerator/denominator
from nordpool.
Itβs probably some null value in the json response but I would t know as no one posted what is needed to debug. Please provide what zone your are trying to get data from?
from nordpool.
I'm in SE03.
from nordpool.
Zone: NL
from nordpool.
Same for me. NL.
Logger: homeassistant.util.logging
Source: util/logging.py:95
First occurred: 18:00:00 (4 occurrences)
Last logged: 19:00:00
Exception in handle_new_hr when dispatching 'nordpool_update_hour': () Traceback (most recent call last): File "/usr/local/lib/python3.12/statistics.py", line 327, in _exact_ratio return (x.numerator, x.denominator) ^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'numerator' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/config/custom_components/nordpool/sensor.py", line 492, in handle_new_hr self._update() File "/config/custom_components/nordpool/sensor.py", line 340, in _update self._average = mean(today) ^^^^^^^^^^^ File "/usr/local/lib/python3.12/statistics.py", line 484, in mean T, total, n = _sum(data) ^^^^^^^^^^ File "/usr/local/lib/python3.12/statistics.py", line 193, in _sum for n, d in map(_exact_ratio, values): File "/usr/local/lib/python3.12/statistics.py", line 330, in _exact_ratio raise TypeError(msg) TypeError: can't convert type 'NoneType' to numerator/denominator
from nordpool.
Same here, no longer getting updates. Need to restart HA and then there is an update. However it will not update itself without a restart.
Zone: NL
from nordpool.
SE3, error logged every hour since 2024-06-26 00:00:00
2024-07-07 10:00:00.265 ERROR (MainThread) [homeassistant.util.logging] Exception in handle_new_hr when dispatching 'nordpool_update_hour': ()
Traceback (most recent call last):
File "/usr/local/lib/python3.12/statistics.py", line 327, in _exact_ratio
return (x.numerator, x.denominator)
^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'numerator'During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/homeassistant/.homeassistant/custom_components/nordpool/sensor.py", line 492, in handle_new_hr
self._update()
File "/home/homeassistant/.homeassistant/custom_components/nordpool/sensor.py", line 340, in _update
self._average = mean(today)
^^^^^^^^^^^
File "/usr/local/lib/python3.12/statistics.py", line 484, in mean
T, total, n = _sum(data)
^^^^^^^^^^
File "/usr/local/lib/python3.12/statistics.py", line 193, in _sum
for n, d in map(_exact_ratio, values):
File "/usr/local/lib/python3.12/statistics.py", line 330, in _exact_ratio
raise TypeError(msg)
TypeError: can't convert type 'NoneType' to numerator/denominator
from nordpool.
Related Issues (20)
- Template variable warning: list object has no element 1 when rendering HOT 2
- Requesting system price as one of the "countries" HOT 2
- devcontainer image is deprecated
- LICENSE?
- New release HOT 4
- Strange negative character HOT 2
- Finnish prices went to EUR after HA update HOT 1
- Stopped working HOT 18
- Add `get_energy_prices` service call
- Q: Additional Cost based on date HOT 3
- VAT configuration seems to not working HOT 4
- A reliable way of triggering automations only when Nordpool price period changes HOT 9
- Negative values to additional_costs HOT 1
- Detected blocking call to open inside the event loop (HA 2024.6) HOT 26
- Not updating, exceptions logged related to new_data_cb(...), handle_new_day and more HOT 17
- 'nordpool' calls async_forward_entry_setup for integration HOT 1
- Detected blocking call to open inside the event loop by custom integration 'nordpool' at custom_components/nordpool/aio_price.py HOT 1
- VAT for Finland will increase from 0.24 to 0.255 starting from 1.9.2024 HOT 2
- Detected blocking call event loop again in misc.py
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nordpool.