Conversation
|
Well, |
|
That's what I initially thought as well. But they must have more strict checking somewhere, because it did not work. |
|
You are using |
|
I am sure I tried both of those, but let me try again in case i just had a typo. I will get back to this soon. I did a lot here so I can't remember exact steps anymore. However, I still think it would be better to use the constant provided by HA as they can theoretically change it. |
Well, it could be the case for |
Interesting.. I wonder why other configuration attributes works. I'll have to take a look. :) |
I totally agree it should be done, yes. It makes breaking in future HA updates less likely. |
I spent quite a bit of time wondering about it, and came to the conclusion that they must use isinstance or some other type checking there, it's pretty much the only explanation when the strings are the same. So I fixed it by using the correct enum :) It's interesting, so please let me know if you find out something. |
|
Oh yeah, it's the only one that's of type |
|
Haha, probably the same thing why I also tried |

This PR adds support for Diagnostic entities (or maybe fixes them if they were already supposed to be working?) by using the already existing
category:parameter, which is not actually used in any definition yet.