mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-11-08 18:39:33 +00:00
Use newer StrEnum and IntEnum over Enum (#4521)
* Use newer StrEnum and IntEnum over Enum * Fix validation issue and remove unnecessary .value calls --------- Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
This commit is contained in:
@@ -9,8 +9,8 @@ def test_write_state(run_dir, coresys: CoreSys):
|
||||
|
||||
coresys.core.state = CoreState.RUNNING
|
||||
|
||||
assert run_dir.read_text() == CoreState.RUNNING.value
|
||||
assert run_dir.read_text() == CoreState.RUNNING
|
||||
|
||||
coresys.core.state = CoreState.SHUTDOWN
|
||||
|
||||
assert run_dir.read_text() == CoreState.SHUTDOWN.value
|
||||
assert run_dir.read_text() == CoreState.SHUTDOWN
|
||||
|
||||
Reference in New Issue
Block a user