Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Localtuya
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Archive
Home Assistant
Localtuya
Commits
e8529d39
Unverified
Commit
e8529d39
authored
Jan 2, 2022
by
rospogrigio
Committed by
GitHub
Jan 2, 2022
Browse files
Options
Downloads
Plain Diff
Merge pull request #663 from jsBlackBelt/master
fix deprecated device_state_attributes
parents
4443713d
8e1c7ef7
Branches
Branches containing commit
Tags
v3.3.0
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
custom_components/localtuya/switch.py
+1
-1
1 addition, 1 deletion
custom_components/localtuya/switch.py
with
1 addition
and
1 deletion
custom_components/localtuya/switch.py
+
1
−
1
View file @
e8529d39
...
...
@@ -48,7 +48,7 @@ class LocaltuyaSwitch(LocalTuyaEntity, SwitchEntity):
return
self
.
_state
@property
def
device
_state_attributes
(
self
):
def
extra
_state_attributes
(
self
):
"""
Return device state attributes.
"""
attrs
=
{}
if
self
.
has_config
(
CONF_CURRENT
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment