Merge pull request #157 from andvikt/dev

Dev
This commit is contained in:
andvikt
2023-10-10 21:05:03 +03:00
committed by GitHub
3 changed files with 6 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.1.7
current_version = 1.1.8b0
parse = (?P<major>\d+)(\.(?P<minor>\d+))(\.(?P<patch>\d+))(?P<release>[bf]*)(?P<build>\d*)
commit = True
tag = True

View File

@@ -244,9 +244,12 @@ class MegaRGBW(LightEntity, BaseMegaEntity):
async def set_color(self, _before, **kwargs):
transition = kwargs.get('transition')
update_state = transition is not None and transition > 3
_after = None
for item, value in kwargs.items():
setattr(self, f'_{item}', value)
_after = self.get_rgbw()
if item == 'rgb_color':
_after = value
_after = _after or self.get_rgbw()
self._rgb_color = tuple(_after[:3])
if transition is None:
transition = self.smooth.total_seconds()

View File

@@ -15,5 +15,5 @@
"@andvikt"
],
"issue_tracker": "https://github.com/andvikt/mega_hacs/issues",
"version": "v1.1.7"
"version": "v1.1.8b0"
}