Support for devices that show extra information in the model #1912
Replies: 2 comments 7 replies
-
I am really trying to avoid regex's as I don't want to end up writing them for people with these devices that don't have a proper model and I'm not sure if a simple wildcard would cover all permutations. The correct way would be for the integration not to have this in the model, or use the new model ID being introduced in HA 2024.8. I am rewriting the library lookup at the moment which may make it easier to add pattern matching in future but I do wonder how much I should bend for badly designed integrations, I'll keep coming back to this one I'm sure. |
Beta Was this translation helpful? Give feedback.
-
And this got me thinking more, regex is overkill but an optional json schema addition for the library might be an easy way of handling this. No promises when but I like this idea.
|
Beta Was this translation helpful? Give feedback.
-
The SureHA integration reports devices in the following format:
Where
XXXX-XXXXXXX
is the device's serial number.As I can see in your code, it only supports exact matches on the model names.
Is there a chance to add support for wildcard or regexes?
PS: I have manually added mine for the time being, so no rush on this.
Beta Was this translation helpful? Give feedback.
All reactions