Fix IKEA STARKVIND native unit of measurement#163
Open
noahwilliamsson wants to merge 1 commit intosanjoyg:mainfrom
Open
Fix IKEA STARKVIND native unit of measurement#163noahwilliamsson wants to merge 1 commit intosanjoyg:mainfrom
noahwilliamsson wants to merge 1 commit intosanjoyg:mainfrom
Conversation
Change `native_uom` to `native_unit_of_measurement` and make use of unit constants.
Fixes the following error message, as seen with at least Home Assistant 2025.7 and later.
2025-08-07 00:00:00.000 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up dirigera_platform platform for sensor: ikea_starkvind_air_purifier_sensor.__init__() got an unexpected keyword argument 'native_uom'
homeassistant | Traceback (most recent call last):
homeassistant | File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 451, in _async_setup_platform
homeassistant | await asyncio.shield(awaitable)
homeassistant | File "/config/custom_components/dirigera_platform/sensor.py", line 67, in async_setup_entry
homeassistant | await add_air_purifier_sensors(async_add_entities, platform.air_purifiers)
homeassistant | File "/config/custom_components/dirigera_platform/sensor.py", line 112, in add_air_purifier_sensors
homeassistant | ikea_starkvind_air_purifier_sensor(
homeassistant | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
homeassistant | device=air_purifier,
homeassistant | ^^^^^^^^^^^^^^^^^^^^
homeassistant | ...<4 lines>...
homeassistant | icon_name="mdi:clock-time-eleven-outline",
homeassistant | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant | )
homeassistant | ^
homeassistant | TypeError: ikea_starkvind_air_purifier_sensor.__init__() got an unexpected keyword argument 'native_uom'
nrbrt
added a commit
to nrbrt/dirigera_platform
that referenced
this pull request
Jan 25, 2026
Cherry-picked from sanjoyg#163 by noahwilliamsson
This was referenced Jan 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe your changes
Change
native_uomtonative_unit_of_measurementand make use of unit constants.Fixes the following error message, as seen with at least Home Assistant 2025.7 and later.
Checklist before submitting a pull request
requirements.txtandmanifest.jsonChecklist for reviewer