Closed mjkaye closed 8 months ago
I'm not convinced this is a good approach - rewriting only in this single place will cause other controllers to fail to match. A proper way to deal with this would be to make keys in the sys module case insensitive, rather than forcing what is effectively an incorrect case sensitive comparison.
Ensure keys in sys.__CACHED_SCAN__ are upper case so that they match device_unique_name.
I had an issue when reading my controller's LEDs. This was due to the fact that the keys in sys.CACHED_SCAN were lower case, but the ID being passed into read_led_value was upper case. This PR makes sure that the keys in sys.CACHED_SCAN are always upper case.