Skip to content
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

Update device_state_attributes to extra_state_attributes #269

Merged
merged 5 commits into from Apr 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion custom_components/browser_mod/binary_sensor.py
Expand Up @@ -50,7 +50,7 @@ def device_class(self):
return DEVICE_CLASS_MOTION

@property
def device_state_attributes(self):
def extra_state_attributes(self):
return {
"type": "browser_mod",
"last_seen": self.last_seen,
Expand Down
2 changes: 1 addition & 1 deletion custom_components/browser_mod/camera.py
Expand Up @@ -37,7 +37,7 @@ def camera_image(self):
return base64.b64decode(self.data.split(",")[-1])

@property
def device_state_attributes(self):
def extra_state_attributes(self):
return {
"type": "browser_mod",
"deviceID": self.deviceID,
Expand Down
2 changes: 1 addition & 1 deletion custom_components/browser_mod/light.py
Expand Up @@ -40,7 +40,7 @@ def is_on(self):
return not self.data.get("blackout", False)

@property
def device_state_attributes(self):
def extra_state_attributes(self):
return {
"type": "browser_mod",
"deviceID": self.deviceID,
Expand Down
2 changes: 1 addition & 1 deletion custom_components/browser_mod/media_player.py
Expand Up @@ -42,7 +42,7 @@ def updated(self):
self.schedule_update_ha_state()

@property
def device_state_attributes(self):
def extra_state_attributes(self):
return {
"type": "browser_mod",
"deviceID": self.deviceID,
Expand Down
2 changes: 1 addition & 1 deletion custom_components/browser_mod/sensor.py
Expand Up @@ -33,7 +33,7 @@ def state(self):
return len(self.connection.connection)

@property
def device_state_attributes(self):
def extra_state_attributes(self):
return {
"type": "browser_mod",
"last_seen": self.last_seen,
Expand Down