enkama / hass-variables

Home Assistant variables component
90 stars 12 forks source link

Fix issues with Sensor Variable changing state on restart #72

Closed Snuffy2 closed 1 year ago

Snuffy2 commented 1 year ago

Still in Draft

Important: This is not a change but I feel needs to be explicitly noted

If a Sensor device class and native unit of measurement is set:

  1. The services will update the value in the native unit of measurement not the displayed unit of measurement if they are different
  2. The services will trigger an error if the updated value is not a supported type for the device class (ex. setting a string for a temperature device class)

Fixes #69