Fixed 3 small issues in isy994 component #12421
Merged
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.
Description:
Three tiny fixes that were still lingering from my big cleanup in #11243
FanLincs have two nodes: one light and one fan motor. In order for each node to get detected as different Hass entity types, I removed the device-type check for FanLinc. The logic will now fall back on the uom checks which should work just fine. (An alternative approach here would be to special case FanLincs and handle them directly - but seeing as the newer 5.x ISY firmware already handles this much better using NodeDefs, I think this quick and dirty approach is fine for the older firmware.) Fixes ISY Component incorrectly detects light as fan #12030
Some non-dimming switches were appearing as
light
s in Hass due to an duplicate NodeDef being in the light domain filter. Removed! Fixes ISY994 - Switchlincs Reported as Lights #12340The
unqiue_id
property was throwing an error for certain entity types that don't have an_id
property from the ISY. This issue has always been present, but was exposed by the entity registry which seems to be the first thing to actually try reading theunique_id
property from the isy994 component.Breaking Change Notes
Some non-dimming switches were getting detected as
light
entities rather thanswitch
entities for users on ISY 5.x firmware. The issue has been fixed, which means that somelight
entities will go back to beingswitch
es, as they always should have been.Related issue (if applicable): fixes #12030 and #12340
Pull request in home-assistant.github.io with documentation (if applicable): No documentation update
Checklist: