nws_alerts icon indicating copy to clipboard operation
nws_alerts copied to clipboard

zone_id configuration being ignored

Open woliver13 opened this issue 2 years ago • 1 comments

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.

2022-08-28_19-24-30 2022-08-28_19-26-00 2022-08-28_19-25-22

woliver13 avatar Aug 29 '22 00:08 woliver13

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?

finity69x2 avatar Sep 12 '22 18:09 finity69x2

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.

woliver13 avatar Nov 12 '22 21:11 woliver13

I've replace all of the nws_alerts directory with a new pull from githyb image

woliver13 avatar Nov 12 '22 22:11 woliver13

My options are still set to TXC163 image

woliver13 avatar Nov 12 '22 22:11 woliver13

The debug log still shows TXZ158 image

woliver13 avatar Nov 12 '22 22:11 woliver13

Is there anything else you need to repro this issue?

woliver13 avatar Nov 12 '22 22:11 woliver13

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)

finity69x2 avatar Dec 11 '22 20:12 finity69x2