Fix recorder crash for long state string - enforce at core level (#9696)
* Recorder exception catch for long state string * Revert - Recorder exception catch for long state string * Validate state length at core level * Revert - this reverts commit 9d6bd017d96f20c10204d9bcb71573e3bc005ee3. * Revert - Recorder exception catch for long state string * Fix state TypeError * Test for long state exception
This commit is contained in:
parent
fc8940111d
commit
7987065ad7
3 changed files with 26 additions and 3 deletions
|
@ -32,3 +32,9 @@ class PlatformNotReady(HomeAssistantError):
|
|||
"""Error to indicate that platform is not ready."""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class InvalidStateError(HomeAssistantError):
|
||||
"""When an invalid state is encountered."""
|
||||
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue