Skip to content

Commit

Permalink
Child lock icons (#188)
Browse files Browse the repository at this point in the history
* Update icons.json

* Update switch.py
  • Loading branch information
emlove authored Jan 15, 2025
1 parent 958866d commit b6343d9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions custom_components/ha_blueair/icons.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@
}
}
}
},
"switch": {
"child_lock": {
"default": "mdi:lock",
"state": {
"off": "mdi:lock-open-variant"
}
}
}
}
}
1 change: 1 addition & 0 deletions custom_components/ha_blueair/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class BlueairChildLockSwitchEntity(BlueairSwitchEntity):
name="Child Lock",
device_class=SwitchDeviceClass.SWITCH,
)
_attr_translation_key = "child_lock"


class BlueairGermShieldSwitchEntity(BlueairSwitchEntity):
Expand Down

0 comments on commit b6343d9

Please sign in to comment.