hass-virtual icon indicating copy to clipboard operation
hass-virtual copied to clipboard

HA Core 2025.1 upcoming types removing

Open SergeyPomelov opened this issue 1 year ago • 2 comments

Log details (WARNING) Logger: homeassistant.const Source: helpers/deprecation.py:222 First occurred: 19:52:38 (5 occurrences) Last logged: 19:52:38

FREQUENCY_GIGAHERTZ was used from virtual, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfFrequency.GIGAHERTZ instead, please report it to the author of the 'virtual' custom integration POWER_VOLT_AMPERE was used from virtual, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfApparentPower.VOLT_AMPERE instead, please report it to the author of the 'virtual' custom integration POWER_VOLT_AMPERE_REACTIVE was used from virtual, this is a deprecated constant which will be removed in HA Core 2025.9. Use UnitOfReactivePower.VOLT_AMPERE_REACTIVE instead, please report it to the author of the 'virtual' custom integration PRESSURE_HPA was used from virtual, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfPressure.HPA instead, please report it to the author of the 'virtual' custom integration VOLUME_CUBIC_METERS was used from virtual, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfVolume.CUBIC_METERS instead, please report it to the author of the 'virtual' custom integration

SergeyPomelov avatar Dec 25 '24 12:12 SergeyPomelov

Another deprecation occur for lights: light.ws_wdesk_under (<class 'custom_components.virtual.light.VirtualLight'>) set to unsupported color mode onoff, expected one of {<ColorMode.BRIGHTNESS: 'brightness'>}, this will stop working in Home Assistant Core 2025.3, please create a bug report at https://github.com/twrecked/hass-virtual/issues

Tony763 avatar Jan 05 '25 19:01 Tony763

You know I can't figure out why developers add something from day one. See a million people use it without issues. Then decide to remove it. Really. Does it take up that much space that you need to remove someone else's code to add yours. Let it alone. Add yours and move on. Best of both worlds. Could a hacker use a light to steal your money cause you used a certain trigger or object. No he can't. Stop the paranoid thinking. Now thousands of add-ons and integrations don't work. Unless creator fixes his code too. Samsung did the same bs with pats. If it works. Don't fix it. Leave it be.

sdennis91 avatar Feb 20 '25 17:02 sdennis91