snarky-snark / home-assistant-variables

A custom Home Assistant component for declaring and setting generic variable entities dynamically.
Apache License 2.0
274 stars 16 forks source link

Service var.set broken and do nothing after update to 0.15.3 #113

Open gamba69 opened 4 months ago

gamba69 commented 4 months ago

Hello, after update to 0.15.3 service var.set silently do nothing. Variable value and attributes not updated, and I don't see any error in log. This bug was fixed in 0.15.2 and now it's rise again. I see that await self.async_update_ha_state(True) in async_set returned, and if i change code to self.async_write_ha_state() all working again

mkagawa commented 4 months ago

I have the same experience, and above fix works for me.

dscottbuch commented 4 months ago

I would guess this is related to "Restore attribute values if HA starts #112" which was broken by 0.15.2 and fixed by 0.15.3. Overall I've regressed to 0.15.0 to make both of these work.