custom_components importing constants through *
fill the logs with warnings, even when not accessed
#107354
Labels
*
fill the logs with warnings, even when not accessed
#107354
The problem
I am using the custom_component Xiaomi_miot which generated 3159 lines of warnings about deprecated constants in my log. This did not happen on 2024-beta or 2024.1.0. This is probably due to wildcard imports (
from homeassistant.const import *
), but quickly checking a few of them reveals that most of the constants warned about are not even accessed in the code.Earlier warnings in the CC's code were fixed by al-one/hass-xiaomi-miot#1461
Probable regression / side-effect from #107114
What version of Home Assistant Core has the issue?
core-2024.1.1
What was the last working version of Home Assistant Core?
core-2024.1.0
What type of installation are you running?
Home Assistant Container
Integration causing the issue
core
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
I'll just post this snippet, but I've got 3159 lines with warnings 😉
Additional information
No response
The text was updated successfully, but these errors were encountered: