Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HA 2025.1 warning #1535

Open
to4ko opened this issue Jan 3, 2025 · 2 comments · May be fixed by #1558
Open

HA 2025.1 warning #1535

to4ko opened this issue Jan 3, 2025 · 2 comments · May be fixed by #1558
Assignees
Labels
enhancement New feature or request

Comments

@to4ko
Copy link

to4ko commented Jan 3, 2025

Warning after upgrade to HA 2025.1

Logger: homeassistant.components.light
Source: helpers/deprecation.py:222
integration: Light (documentation, issues)
First occurred: 22:53:42 (2 occurrences)
Last logged: 22:53:42

ATTR_COLOR_TEMP was used from xiaomi_gateway3, this is a deprecated constant which will be removed in HA Core 2026.1. Use kelvin equivalent (ATTR_COLOR_TEMP_KELVIN) instead, please report it to the author of the 'xiaomi_gateway3' custom integration
@AlexxIT AlexxIT added the enhancement New feature or request label Jan 4, 2025
@AlexxIT AlexxIT self-assigned this Jan 4, 2025
@ADMiNZ
Copy link

ADMiNZ commented Jan 16, 2025

I see similar warnings

2025-01-16 15:30:28.156 WARNING (ImportExecutor_0) [py.warnings] /usr/local/lib/python3.13/site-packages/miio/miot_device.py:23: FutureWarning: functools.partial will be a method descriptor in future Python versions; wrap it in enum.member() if you want to preserve the old behavior
  Bool = partial(_str2bool)
2025-01-16 15:30:30.509 WARNING (ImportExecutor_0) [homeassistant.components.light] ATTR_COLOR_TEMP was used from xiaomi_gateway3, this is a deprecated constant which will be removed in HA Core 2026.1. Use kelvin equivalent (ATTR_COLOR_TEMP_KELVIN) instead, please report it to the author of the 'xiaomi_gateway3' custom integration
2025-01-16 15:30:30.514 WARNING (ImportExecutor_0) [homeassistant.components.light] ATTR_COLOR_TEMP was used from xiaomi_gateway3, this is a deprecated constant which will be removed in HA Core 2026.1. Use kelvin equivalent (ATTR_COLOR_TEMP_KELVIN) instead, please report it to the author of the 'xiaomi_gateway3' custom integration

@to4ko
Copy link
Author

to4ko commented Jan 29, 2025

@AlexxIT

some new wordings

2025-01-29 22:31:12.201 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'xiaomi_gateway3' is using mireds for warmest light color temperature, when it should be adjusted to use the kelvin attribute `_attr_min_color_temp_kelvin` or override the kelvin property `min_color_temp_kelvin`, possibly with default DEFAULT_MIN_KELVIN (see https://github.com/home-assistant/core/pull/79591) at custom_components/xiaomi_gateway3/hass/entity.py, line 158: self._async_write_ha_state(). This will stop working in Home Assistant 2026.1, please create a bug report at https://github.com/AlexxIT/XiaomiGateway3/issues

@AlexxIT AlexxIT marked this as a duplicate of #1557 Feb 1, 2025
@caibinqing caibinqing linked a pull request Feb 1, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants