8000 Add motion sensor setting to tplink by rytilahti · Pull Request #129393 · home-assistant/core · GitHub
[go: up one dir, main page]

Skip to content

Add motion sensor setting to tplink #129393

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'upstream/dev' into tplink/feat/pir_feature
  • Loading branch information
rytilahti committed Nov 6, 2024
commit 5613c5e6484239af2893a7f3d2dd16fbaf127c6e
3 changes: 3 additions & 0 deletions homeassistant/components/tplink/icons.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@
"on": "mdi:sleep"
}
},
"child_lock": {
"default": "mdi:account-lock"
},
"pir_enabled": {
"default": "mdi:motion-sensor-off",
"state": {
Expand Down
3 changes: 3 additions & 0 deletions homeassistant/components/tplink/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@
"fan_sleep_mode": {
"name": "Fan sleep mode"
},
"child_lock": {
"name": "Child lock"
},
"pir_enabled": {
"name": "PIR enabled"
}
Expand Down
3 changes: 3 additions & 0 deletions homeassistant/components/tplink/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ class TPLinkSwitchEntityDescription(
TPLinkSwitchEntityDescription(
key="fan_sleep_mode",
),
TPLinkSwitchEntityDescription(
key="child_lock",
),
TPLinkSwitchEntityDescription(
key="pir_enabled",
),
Expand Down
5 changes: 5 additions & 0 deletions tests/components/tplink/fixtures/features.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
"type": "Switch",
"category": "Config"
},
"child_lock": {
"value": true,
"type": "Switch",
"category": "Config"
},
"pir_enabled": {
"value": true,
"type": "Switch",
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0