diff --git a/custom_components/mega/entities.py b/custom_components/mega/entities.py index 07e5e56..70dabeb 100644 --- a/custom_components/mega/entities.py +++ b/custom_components/mega/entities.py @@ -296,7 +296,7 @@ class MegaOutPort(MegaPushEntity): def max_dim(self): if self.dimmer_scale == 1: return 255 - elif self.dimmer == 16: + elif self.dimmer_scale == 16: return 4095 else: return 255 diff --git a/custom_components/mega/manifest.json b/custom_components/mega/manifest.json index c5ba0e8..74d86d7 100644 --- a/custom_components/mega/manifest.json +++ b/custom_components/mega/manifest.json @@ -15,5 +15,5 @@ "@andvikt" ], "issue_tracker": "https://github.com/andvikt/mega_hacs/issues", - "version": "v1.0.6b4" + "version": "v1.0.7" } \ No newline at end of file