Improved debugging for "Failed to set state" (#101657)
This commit is contained in:
parent
ba3fd4dee1
commit
1b11062b27
2 changed files with 4 additions and 2 deletions
|
@ -907,7 +907,9 @@ class Entity(ABC):
|
|||
self._state_info,
|
||||
)
|
||||
except InvalidStateError:
|
||||
_LOGGER.exception("Failed to set state, fall back to %s", STATE_UNKNOWN)
|
||||
_LOGGER.exception(
|
||||
"Failed to set state for %s, fall back to %s", entity_id, STATE_UNKNOWN
|
||||
)
|
||||
hass.states.async_set(
|
||||
entity_id, STATE_UNKNOWN, {}, self.force_update, self._context
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue