ims-custom-component icon indicating copy to clipboard operation
ims-custom-component copied to clipboard

weatheril library allways in DEBUG mode

Open tzagim opened this issue 7 months ago • 5 comments

configuration.yaml:

logger:
  default: info
  logs:
    custom_components.sensor.ims: info
    custom_components.ims: info
    custom_components.weather.ims: info
    weatheril: info

And it still shows me DEBUG.

I think it started here: https://github.com/GuyKh/ims-custom-component/commit/27569d93b781b996fcdfccccf70939f92d37f962

related issues: https://github.com/GuyKh/ims-custom-component/issues/56 https://github.com/GuyKh/ims-custom-component/issues/130

tzagim avatar May 31 '25 12:05 tzagim

configuration.yaml:

logger:
  default: info
  logs:
    charset_normalizer: warning

then logs:

cat home-assistant.log | grep ims
2025-06-03 09:59:27.270 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration ims which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2025-06-03 09:59:27.274 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration ims_envista which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2025-06-03 09:59:36.362 INFO (MainThread) [homeassistant.setup] Setting up ims
2025-06-03 09:59:36.363 INFO (MainThread) [homeassistant.setup] Setup of domain ims took 0.00 seconds
2025-06-03 09:59:36.363 WARNING (MainThread) [custom_components.ims] Key monitored_conditions is missing from config_entry.options
2025-06-03 09:59:36.363 INFO (MainThread) [custom_components.ims.weather_update_coordinator] Fetching data from IMS
2025-06-03 09:59:39.305 INFO (MainThread) [homeassistant.setup] Setting up ims_envista
2025-06-03 09:59:39.305 INFO (MainThread) [homeassistant.setup] Setup of domain ims_envista took 0.00 seconds
2025-06-03 09:59:43.648 INFO (MainThread) [homeassistant.components.sensor] Setting up ims.sensor
2025-06-03 09:59:43.648 INFO (MainThread) [custom_components.ims.weather_update_coordinator] Fetching data from IMS
2025-06-03 09:59:43.657 INFO (MainThread) [homeassistant.components.weather] Setting up ims.weather
2025-06-03 09:59:43.657 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up ims.binary_sensor
2025-06-03 09:59:43.887 INFO (MainThread) [homeassistant.components.sensor] Setting up ims_envista.sensor
2025-06-03 09:59:43.890 INFO (MainThread) [homeassistant.components.weather] Setting up ims_envista.weather

🤷🏻

GuyKh avatar Jun 03 '25 07:06 GuyKh

Every hour there is the following log:

2025-06-04 10:09:21.020 | DEBUG    | weatheril:_get_data:354 - Getting data from https://ims.gov.il/he/now_analysis/XX
2025-06-04 10:09:21.249 | DEBUG    | weatheril:get_current_analysis:110 - Getting current analysis
2025-06-04 10:09:21.249 | DEBUG    | weatheril:get_current_analysis:113 - Got current analysis for location XX
2025-06-04 10:09:21.251 | DEBUG    | weatheril:get_forecast:189 - Getting forecast
2025-06-04 10:09:21.252 | DEBUG    | weatheril:_get_data:354 - Getting data from https://ims.gov.il/he/full_forecast_data/XX
2025-06-04 10:09:21.437 | DEBUG    | weatheril:get_forecast:194 - Got forecast for location XX
2025-06-04 10:09:21.464 | DEBUG    | weatheril:get_radar_images:298 - Getting radar images
2025-06-04 10:09:21.638 | ERROR    | weatheril:get_radar_images:321 - Error getting images. 'NoneType' object is not iterable

tzagim avatar Jun 04 '25 07:06 tzagim

It's indeed in debug. Make sure you're on the latest version and that the default HA is in debug.

GuyKh avatar Jun 04 '25 09:06 GuyKh

The default is info (see first message). and I'm on the latest version (0.1.34).

It seems to me like a bug that the library send debug by default and is not subject to the integration settings.

tzagim avatar Jun 04 '25 16:06 tzagim

@tzagim I'd agree if it would reproduce...

GuyKh avatar Jun 04 '25 16:06 GuyKh