finity69x2 / nws_alerts

An updated version of the nws_alerts custom integration for Home Assistant
84 stars 29 forks source link

zone_id configuration being ignored #44

Closed woliver13 closed 1 year ago

woliver13 commented 2 years ago

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

finity69x2 commented 1 year ago

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?

woliver13 commented 1 year ago

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 commented 1 year ago

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

woliver13 commented 1 year ago

My options are still set to TXC163 image

woliver13 commented 1 year ago

The debug log still shows TXZ158 image

woliver13 commented 1 year ago

Is there anything else you need to repro this issue?

finity69x2 commented 1 year ago

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)