nws_alerts
nws_alerts copied to clipboard
zone_id configuration being ignored
I have changed the zone_id from the default local zone TXZ158 to TXC163 and verified that the change is visible in const,py. But when I turn the logging level down I see that the process is calling out with TXZ158.
I'm not sure why your ZONE_ID in const.py has a value in it?
it's not supposed to contain anything since it gets it from the UI.
it should look like this:
ZONE_ID: ""
Did you manually modify the file(s)?
If so which other files did you modify?
I did manually modify the file. Let me see if I can diff and get back to your original code and then redo my repo process for you.
I've replace all of the nws_alerts directory with a new pull from githyb
My options are still set to TXC163
The debug log still shows TXZ158
Is there anything else you need to repro this issue?
Not really. I am not having that issue.
I just re-tried mine on a brand new test install and it worked for me.
2022-12-11 15:19:46.092 DEBUG (MainThread) [custom_components.nws_alerts] getting state for tx163 from https://api.weather.gov/alerts/active/count 2022-12-11 15:19:46.096 DEBUG (MainThread) [custom_components.nws_alerts] Finished fetching NWS Alerts TX data in 0.095 seconds (success: True) 2022-12-11 15:20:46.094 DEBUG (MainThread) [custom_components.nws_alerts] getting state for tx163 from https://api.weather.gov/alerts/active/count 2022-12-11 15:20:46.098 DEBUG (MainThread) [custom_components.nws_alerts] Finished fetching NWS Alerts TX data in 0.098 seconds (success: True) 2022-12-11 15:21:46.092 DEBUG (MainThread) [custom_components.nws_alerts] getting state for tx163 from https://api.weather.gov/alerts/active/count 2022-12-11 15:21:46.096 DEBUG (MainThread) [custom_components.nws_alerts] Finished fetching NWS Alerts TX data in 0.094 seconds (success: True) 2022-12-11 15:22:46.090 DEBUG (MainThread) [custom_components.nws_alerts] getting state for tx163 from https://api.weather.gov/alerts/active/count 2022-12-11 15:22:46.093 DEBUG (MainThread) [custom_components.nws_alerts] Finished fetching NWS Alerts TX data in 0.092 seconds (success: True) 2022-12-11 15:23:46.090 DEBUG (MainThread) [custom_components.nws_alerts] getting state for tx163 from https://api.weather.gov/alerts/active/count 2022-12-11 15:23:46.094 DEBUG (MainThread) [custom_components.nws_alerts] Finished fetching NWS Alerts TX data in 0.092 seconds (success: True) 2022-12-11 15:24:46.092 DEBUG (MainThread) [custom_components.nws_alerts] getting state for tx163 from https://api.weather.gov/alerts/active/count 2022-12-11 15:24:46.096 DEBUG (MainThread) [custom_components.nws_alerts] Finished fetching NWS Alerts TX data in 0.095 seconds (success: True)