mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Use Python3 new super syntax sugar (#26890)
This commit is contained in:
committed by
Paulus Schoutsen
parent
6fdff9ffab
commit
9c9c921922
@@ -81,7 +81,7 @@ class TcpSensor(Entity):
|
||||
name = self._config[CONF_NAME]
|
||||
if name is not None:
|
||||
return name
|
||||
return super(TcpSensor, self).name
|
||||
return super().name
|
||||
|
||||
@property
|
||||
def state(self):
|
||||
|
||||
Reference in New Issue
Block a user