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

fallback to what is set in the config #458

Conversation

scruysberghs
Copy link
Contributor

Attempt to fix the "ERROR - emhass.web_server - The retrieved JSON is empty, A sensor:sensor.power_load_no_var_loads may have 0 days of history, passed sensor may not be correct, or days to retrieve is set too heigh"

even if you have another sensor set in your config file.

…er_load_no_var_loads as runtime parameter

Attempt to fix the "ERROR - emhass.web_server - The retrieved JSON is empty, A sensor:sensor.power_load_no_var_loads may have 0 days of history, passed sensor may not be correct, or days to retrieve is set too heigh" 

 even if you have another sensor set in your config file.
Copy link
Owner

@davidusb-geek davidusb-geek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That need to be changed to:

var_model = params["retrieve_hass_conf"]["sensor_power_load_no_var_loads"]

Because self is not defined here.

…rom the config file

self is not declared here

params["retrieve_hass_conf"]["sensor_power_load_no_var_loads"]
@davidusb-geek davidusb-geek merged commit e74c3c5 into davidusb-geek:master Feb 16, 2025
15 of 17 checks passed
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

Successfully merging this pull request may close these issues.

2 participants