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
 | 
			
		||||
 | 
			
		||||
    @property
 | 
			
		||||
    def device_state_attributes(self):
 | 
			
		||||
    def extra_state_attributes(self):
 | 
			
		||||
        return {
 | 
			
		||||
            "type": "browser_mod",
 | 
			
		||||
            "last_seen": self.last_seen,
 | 
			
		||||
 | 
			
		||||
@ -37,7 +37,7 @@ class BrowserModCamera(Camera, BrowserModEntity):
 | 
			
		||||
        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,
 | 
			
		||||
 | 
			
		||||
@ -40,7 +40,7 @@ class BrowserModLight(LightEntity, BrowserModEntity):
 | 
			
		||||
        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,
 | 
			
		||||
 | 
			
		||||
@ -42,7 +42,7 @@ class BrowserModPlayer(MediaPlayerEntity, BrowserModEntity):
 | 
			
		||||
        self.schedule_update_ha_state()
 | 
			
		||||
 | 
			
		||||
    @property
 | 
			
		||||
    def device_state_attributes(self):
 | 
			
		||||
    def extra_state_attributes(self):
 | 
			
		||||
        return {
 | 
			
		||||
            "type": "browser_mod",
 | 
			
		||||
            "deviceID": self.deviceID,
 | 
			
		||||
 | 
			
		||||
@ -33,7 +33,7 @@ class BrowserModSensor(BrowserModEntity):
 | 
			
		||||
        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,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user