Use Python3 new super syntax sugar (#26890)

This commit is contained in:
Franck Nijhof 2019-09-25 00:38:20 +02:00 committed by Paulus Schoutsen
parent 6fdff9ffab
commit 9c9c921922
26 changed files with 30 additions and 30 deletions

View file

@ -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)