Update sensor.py

This commit is contained in:
andvikt
2021-03-24 12:40:39 +03:00
committed by GitHub
parent bf15d4f3f9
commit e75f8b91ef

View File

@@ -241,7 +241,8 @@ class Mega1WSensor(MegaPushEntity):
tmpl.hass = self.hass tmpl.hass = self.hass
ret = tmpl.async_render({'value': ret}) ret = tmpl.async_render({'value': ret})
except: except:
return ret pass
return ret
@property @property
def name(self): def name(self):
@@ -255,4 +256,4 @@ class Mega1WSensor(MegaPushEntity):
_constructors = { _constructors = {
'sensor': Mega1WSensor, 'sensor': Mega1WSensor,
'i2c': MegaI2C, 'i2c': MegaI2C,
} }