Update device_state_attributes to extra_state_attributes (#269)
This commit is contained in:
parent
63d204cbf8
commit
d4dc57d683
@ -50,7 +50,7 @@ class BrowserModSensor(BrowserModEntity):
|
|||||||
return DEVICE_CLASS_MOTION
|
return DEVICE_CLASS_MOTION
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def device_state_attributes(self):
|
def extra_state_attributes(self):
|
||||||
return {
|
return {
|
||||||
"type": "browser_mod",
|
"type": "browser_mod",
|
||||||
"last_seen": self.last_seen,
|
"last_seen": self.last_seen,
|
||||||
|
@ -37,7 +37,7 @@ class BrowserModCamera(Camera, BrowserModEntity):
|
|||||||
return base64.b64decode(self.data.split(",")[-1])
|
return base64.b64decode(self.data.split(",")[-1])
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def device_state_attributes(self):
|
def extra_state_attributes(self):
|
||||||
return {
|
return {
|
||||||
"type": "browser_mod",
|
"type": "browser_mod",
|
||||||
"deviceID": self.deviceID,
|
"deviceID": self.deviceID,
|
||||||
|
@ -40,7 +40,7 @@ class BrowserModLight(LightEntity, BrowserModEntity):
|
|||||||
return not self.data.get("blackout", False)
|
return not self.data.get("blackout", False)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def device_state_attributes(self):
|
def extra_state_attributes(self):
|
||||||
return {
|
return {
|
||||||
"type": "browser_mod",
|
"type": "browser_mod",
|
||||||
"deviceID": self.deviceID,
|
"deviceID": self.deviceID,
|
||||||
|
@ -42,7 +42,7 @@ class BrowserModPlayer(MediaPlayerEntity, BrowserModEntity):
|
|||||||
self.schedule_update_ha_state()
|
self.schedule_update_ha_state()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def device_state_attributes(self):
|
def extra_state_attributes(self):
|
||||||
return {
|
return {
|
||||||
"type": "browser_mod",
|
"type": "browser_mod",
|
||||||
"deviceID": self.deviceID,
|
"deviceID": self.deviceID,
|
||||||
|
@ -33,7 +33,7 @@ class BrowserModSensor(BrowserModEntity):
|
|||||||
return len(self.connection.connection)
|
return len(self.connection.connection)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def device_state_attributes(self):
|
def extra_state_attributes(self):
|
||||||
return {
|
return {
|
||||||
"type": "browser_mod",
|
"type": "browser_mod",
|
||||||
"last_seen": self.last_seen,
|
"last_seen": self.last_seen,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user