Closed zoe-codez closed 2 months ago
This only accepts the enum, it should also accept the correct strings via a string union. Quick tweak
synapse.sensor({ // ... state_class: SensorStateClass.TOTAL, });
Mental note: It was set up this way originally because there is docs on the enum. Those details should be moved to the state_class property to have a centralized spot
state_class
🪤 Context
This only accepts the enum, it should also accept the correct strings via a string union. Quick tweak