audi_connect_ha
audi_connect_ha copied to clipboard
Values are set or not set by current API call only
When I'm charging my car, the remainingChargeTime API call returns a value with that key. If the charging is done, the API call does not return a value, and the entity sets it to None by default. The dashboard says, "Unknown". Unfortunately this also triggers a notification I have for "unknown" entities because HA drops entities a lot and sometimes I have to take an action. I can add this value to the ignore list, but...
The entity should recognize that if a value was set before, and is not set now, it's not an unsupported key and should not be None, but should instead be something like "n/a", because on investigation the remainingChargeTime has no meaning unless the vehicle is plugged in. I suspect there are other cases like this, so a bit of hysteresis on all values is probably a good idea.
It also appears that if a "required" value is not returned or the integration fails to read it, the integration fails to update entirely and won't update again until all the values are returned. Maybe harden it a bit so that all retuend values are updated, and a missing value doesn't kill the whole integration.
This issue is stale because it has been open for 60 days with no activity. Are you still experiencing this issue?
This issue was closed because it has been inactive for 30 days since being marked as stale.