J. Nick Koston

Results 1005 comments of J. Nick Koston

How is the data represented coming back from the bridge on the api?

Instead replace this function with something that splits the model and returns the first part. ```python def _device_model_to_type(model: str) -> str: """Convert a lutron_caseta device registry entry model to type."""...

We will need to add this to supported brands as well in a future PR

> Or maybe something like this is better. Will match the existing triggers. > > [danaues/pytesting@`36bd367`/kevin2.py#L3-L14](https://github.com/danaues/pytesting/blob/36bd36781b8b3069653b4cb2a9bee5ddfe87ae63/kevin2.py#L3-L14) > > Model String: PJ2-3BRL-GXX-X01 Pico3ButtonRaiseLower Returns: Pico3ButtonRaiseLower > > Model String: CS-YJ-4GC-WH FourGroupRemote...

I merged your suggestion in and fixed the `async_validate_trigger_config` and the test.

> Testing isn't going so well. I think it needs to be added in **init**.py during the initial device registry. Otherwise i'm running into issues when retrieving the trigger list,...

If its still chatty with your fix, I think it would be fine to suppress any errors from the single polls since we should get errors from the main coordinator...