From d90288de7c25708280b448f891bf12e85a623a7c Mon Sep 17 00:00:00 2001 From: wareczek Date: Sun, 8 Sep 2024 23:58:31 +0200 Subject: [PATCH] fixed pulseWidth disabled by default --- .github/workflows/hacs.yml | 4 ++-- custom_components/sonoff/number.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/hacs.yml b/.github/workflows/hacs.yml index 765435a0..0f6f973a 100644 --- a/.github/workflows/hacs.yml +++ b/.github/workflows/hacs.yml @@ -8,11 +8,11 @@ jobs: hacs: runs-on: "ubuntu-latest" steps: - - uses: "actions/checkout@v2" + - uses: "actions/checkout@v4" - uses: "hacs/action@main" with: { category: "integration" } hassfest: runs-on: "ubuntu-latest" steps: - - uses: "actions/checkout@v3" + - uses: "actions/checkout@v4" - uses: "home-assistant/actions/hassfest@master" diff --git a/custom_components/sonoff/number.py b/custom_components/sonoff/number.py index cda9a18a..87bebf3e 100644 --- a/custom_components/sonoff/number.py +++ b/custom_components/sonoff/number.py @@ -38,7 +38,7 @@ async def async_set_native_value(self, value: float) -> None: class XPulseWidth(XNumber): param = "pulseWidth" - __attr_entity_registry_enabled_default = False + _attr_entity_registry_enabled_default = False _attr_native_max_value = 36000 _attr_native_min_value = 0.5