mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-10 16:44:28 +05:00
Update sensor.py
This commit is contained in:
@@ -241,7 +241,8 @@ class Mega1WSensor(MegaPushEntity):
|
||||
tmpl.hass = self.hass
|
||||
ret = tmpl.async_render({'value': ret})
|
||||
except:
|
||||
return ret
|
||||
pass
|
||||
return ret
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
@@ -255,4 +256,4 @@ class Mega1WSensor(MegaPushEntity):
|
||||
_constructors = {
|
||||
'sensor': Mega1WSensor,
|
||||
'i2c': MegaI2C,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user