mirror of
https://github.com/andvikt/mega_hacs.git
synced 2026-11-03 00:28:44 +05:00
fix sensors
This commit is contained in:
1 parent
c9f0e85f6a
commit
7d777c9e82
1 file changed
+2
-2
@@ -146,7 +146,7 @@ class MegaI2C(MegaPushEntity):
|
||||
ret = tmpl.async_render({'value': ret})
|
||||
except:
|
||||
ret = ret
|
||||
return ret
|
||||
return str(ret)
|
||||
|
||||
@property
|
||||
def device_class(self):
|
||||
@@ -242,7 +242,7 @@ class Mega1WSensor(MegaPushEntity):
|
||||
ret = tmpl.async_render({'value': ret})
|
||||
except:
|
||||
pass
|
||||
return ret
|
||||
return str(ret)
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
|
||||
Reference in new issue
Block a user