Clean up access to config in various integrations v2 (#33763)
This commit is contained in:
parent
d95ffb3aa3
commit
d7e3b0b755
20 changed files with 59 additions and 59 deletions
|
@ -32,7 +32,7 @@ class OnlineStatus(BinarySensorDevice):
|
|||
@property
|
||||
def name(self):
|
||||
"""Return the name of the UPS online status sensor."""
|
||||
return self._config.get(CONF_NAME)
|
||||
return self._config[CONF_NAME]
|
||||
|
||||
@property
|
||||
def is_on(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue