Skip to content

Commit 797c0d9

Browse files
committed
Changes for attributes Core > 2021.12
In core 2021.12 device_state_attributes uis replaced by extra_state_attributes
1 parent af0c2d9 commit 797c0d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/imagedirectory/camera.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ def name(self):
411411
return self._name
412412

413413
@property
414-
def device_state_attributes(self):
414+
def extra_state_attributes(self):
415415
"""Return the camera state attributes."""
416416
attrs = {}
417417
attrs["directory"] = self._path

0 commit comments

Comments
 (0)