* Set state of entity with invalid state to unknown * Add test * Apply suggestions from code review Co-authored-by: Robert Resch <robert@resch.dev> * Update test_entity.py --------- Co-authored-by: Robert Resch <robert@resch.dev>