fix dimmer_scale for PCA9685

This commit is contained in:
Andrey
2021-07-25 08:36:12 +03:00
parent 0fab2384b0
commit 87492be38f
2 changed files with 2 additions and 2 deletions

View File

@@ -296,7 +296,7 @@ class MegaOutPort(MegaPushEntity):
def max_dim(self): def max_dim(self):
if self.dimmer_scale == 1: if self.dimmer_scale == 1:
return 255 return 255
elif self.dimmer == 16: elif self.dimmer_scale == 16:
return 4095 return 4095
else: else:
return 255 return 255

View File

@@ -15,5 +15,5 @@
"@andvikt" "@andvikt"
], ],
"issue_tracker": "https://github.com/andvikt/mega_hacs/issues", "issue_tracker": "https://github.com/andvikt/mega_hacs/issues",
"version": "v1.0.6b4" "version": "v1.0.7"
} }