mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-13 18:14:28 +05:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e75f8b91ef | ||
|
|
bf15d4f3f9 |
@@ -673,7 +673,7 @@ class MegaD:
|
|||||||
cmd = dict(
|
cmd = dict(
|
||||||
pt=config[0][0],
|
pt=config[0][0],
|
||||||
chip=chip,
|
chip=chip,
|
||||||
ws=''.join([hex(x).split('x')[1].ljust(2, '0').upper() for x in _next_val])
|
ws=''.join([hex(x).split('x')[1].rjust(2, '0').upper() for x in _next_val])
|
||||||
)
|
)
|
||||||
await self.request(**cmd)
|
await self.request(**cmd)
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user