Replace lists with tuples (2) (#53685)

This commit is contained in:
Marc Mueller
2021-07-30 01:20:03 +02:00
committed by GitHub
parent 5eba3e485b
commit 0815eede4b
61 changed files with 137 additions and 139 deletions

View File

@@ -286,7 +286,7 @@ class UpCloudServerEntity(CoordinatorEntity):
"""Return True if entity is available."""
return super().available and STATE_MAP.get(
self._server.state, self._server.state
) in [STATE_ON, STATE_OFF]
) in (STATE_ON, STATE_OFF)
@property
def extra_state_attributes(self) -> dict[str, Any]: