File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
custom_components/connectlife Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -114,9 +114,9 @@ async def async_set_value(self, value: int) -> None:
114114 """Set value for this sensor."""
115115 _LOGGER .debug ("Setting %s to %d on %s" , self .status , value , self .nickname )
116116 if self .read_only is None :
117- _LOGGER .warning ("%s may be read-only on %s" , self ._attr_name , self .nickname )
117+ _LOGGER .warning ("%s may be read-only on %s" , self .entity_description . name , self .nickname )
118118 elif self .read_only :
119- raise ServiceValidationError (f"{ self ._attr_name } is read-only on { self .nickname } " )
119+ raise ServiceValidationError (f"{ self .entity_description . name } is read-only on { self .nickname } " )
120120 try :
121121 await self .async_update_device ({self .status : value })
122122 except LifeConnectError as api_error :
You can’t perform that action at this time.
0 commit comments