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:
parent
48cb09a4a8
commit
2792a5f016
10 changed files with 20 additions and 38 deletions
|
@ -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, ...] = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue