Code Monkey home page Code Monkey logo

Comments (8)

DewGew avatar DewGew commented on August 26, 2024 1

Count me in also.

from nordpool.

MaBeniu avatar MaBeniu commented on August 26, 2024

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.

Hellowlol avatar Hellowlol commented on August 26, 2024

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.

toMTen023 avatar toMTen023 commented on August 26, 2024

I'm in SE03.

from nordpool.

Erwiiinst avatar Erwiiinst commented on August 26, 2024

Zone: NL

from nordpool.

Swerfer avatar Swerfer commented on August 26, 2024

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.

arno-millenaar avatar arno-millenaar commented on August 26, 2024

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.

rogerthn2019 avatar rogerthn2019 commented on August 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.