Use Python3 new super syntax sugar (#26890)
This commit is contained in:
parent
6fdff9ffab
commit
9c9c921922
26 changed files with 30 additions and 30 deletions
|
@ -122,7 +122,7 @@ class LoopEnergyElec(LoopEnergyDevice):
|
|||
|
||||
def __init__(self, controller):
|
||||
"""Initialize the sensor."""
|
||||
super(LoopEnergyElec, self).__init__(controller)
|
||||
super().__init__(controller)
|
||||
self._name = "Power Usage"
|
||||
self._controller.subscribe_elecricity(self._callback)
|
||||
|
||||
|
@ -136,7 +136,7 @@ class LoopEnergyGas(LoopEnergyDevice):
|
|||
|
||||
def __init__(self, controller):
|
||||
"""Initialize the sensor."""
|
||||
super(LoopEnergyGas, self).__init__(controller)
|
||||
super().__init__(controller)
|
||||
self._name = "Gas Usage"
|
||||
self._controller.subscribe_gas(self._callback)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue