Enable even more SIM ruff rules (#113017)

* SIM202 SIM211 SIM220 SIM221 SIM222 SIM223

* SIM910 SIM911

* SIM

* Update homeassistant/components/mqtt/siren.py

Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>

* Update homeassistant/components/mqtt/siren.py

Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>

---------

Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
This commit is contained in:
Joost Lekkerkerker 2024-03-11 14:23:52 +01:00 committed by GitHub
parent 48cb09a4a8
commit 2792a5f016
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 20 additions and 38 deletions

View file

@ -119,7 +119,7 @@ def cvt_volume(val: int | None) -> str | None:
if val is None:
return None
volume_level = {1: "low", 2: "medium", 3: "high"}
return volume_level.get(val, None)
return volume_level.get(val)
SENSOR_TYPES: tuple[YoLinkSensorEntityDescription, ...] = (