From 125b2ac32233c7d6c19a4730326869b1f4b1df03 Mon Sep 17 00:00:00 2001 From: Brian Towles Date: Wed, 29 Jul 2026 11:14:08 -0500 Subject: [PATCH] Bump aiomodernforms to 0.2.0 (#177506) --- homeassistant/components/modern_forms/diagnostics.py | 5 ++++- homeassistant/components/modern_forms/manifest.json | 2 +- pyproject.toml | 2 -- requirements_all.txt | 2 +- .../modern_forms/fixtures/device_status.json | 3 ++- .../modern_forms/snapshots/test_diagnostics.ambr | 12 ++++++++++++ 6 files changed, 20 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/modern_forms/diagnostics.py b/homeassistant/components/modern_forms/diagnostics.py index ac08b701e38f..b4d3a57631a6 100644 --- a/homeassistant/components/modern_forms/diagnostics.py +++ b/homeassistant/components/modern_forms/diagnostics.py @@ -11,6 +11,7 @@ from .coordinator import ModernFormsConfigEntry REDACT_CONFIG = {CONF_MAC} REDACT_DEVICE_INFO = {"mac_address", "owner"} +REDACT_DEVICE_STATUS = {"schedule", "user_data"} async def async_get_config_entry_diagnostics( @@ -25,6 +26,8 @@ async def async_get_config_entry_diagnostics( "info": async_redact_data( asdict(coordinator.modern_forms.info), REDACT_DEVICE_INFO ), - "status": asdict(coordinator.modern_forms.status), + "status": async_redact_data( + asdict(coordinator.modern_forms.status), REDACT_DEVICE_STATUS + ), }, } diff --git a/homeassistant/components/modern_forms/manifest.json b/homeassistant/components/modern_forms/manifest.json index 5d036319f8e3..9dc7b7818deb 100644 --- a/homeassistant/components/modern_forms/manifest.json +++ b/homeassistant/components/modern_forms/manifest.json @@ -6,7 +6,7 @@ "documentation": "https://www.home-assistant.io/integrations/modern_forms", "iot_class": "local_polling", "loggers": ["aiomodernforms"], - "requirements": ["aiomodernforms==0.1.8"], + "requirements": ["aiomodernforms==0.2.0"], "zeroconf": [ { "name": "wac*", diff --git a/pyproject.toml b/pyproject.toml index 43f8fc309b91..2c7bf1895401 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -594,8 +594,6 @@ filterwarnings = [ "ignore:websockets.legacy is deprecated:DeprecationWarning:websockets.legacy", # -- unmaintained projects, last release about 2+ years - # https://pypi.org/project/aiomodernforms/ - v0.1.8 - 2021-06-27 - "ignore:with timeout\\(\\) is deprecated:DeprecationWarning:aiomodernforms.modernforms", # https://pypi.org/project/colorthief/ - v0.2.1 - 2017-02-09 "ignore:Image.Image.getdata is deprecated and will be removed in Pillow 14.* Use get_flattened_data instead:DeprecationWarning:colorthief", # https://pypi.org/project/directv/ - v0.4.0 - 2020-09-12 diff --git a/requirements_all.txt b/requirements_all.txt index 60890787e29f..2895fcf8eed7 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -345,7 +345,7 @@ aiomealie==2.0.0 aiomelcloudhome==0.2.1 # homeassistant.components.modern_forms -aiomodernforms==0.1.8 +aiomodernforms==0.2.0 # homeassistant.components.yamaha_musiccast aiomusiccast==0.15.0 diff --git a/tests/components/modern_forms/fixtures/device_status.json b/tests/components/modern_forms/fixtures/device_status.json index 05c5aff30e7c..408f9637c201 100644 --- a/tests/components/modern_forms/fixtures/device_status.json +++ b/tests/components/modern_forms/fixtures/device_status.json @@ -13,5 +13,6 @@ "lightSleepTimer": 0, "resetRfPairList": false, "rfPairModeActive": false, - "schedule": "" + "schedule": "QkFTRTY0U0NIRURVTEU=", + "userData": "some-app-written-data" } diff --git a/tests/components/modern_forms/snapshots/test_diagnostics.ambr b/tests/components/modern_forms/snapshots/test_diagnostics.ambr index 1b4090ca5a4a..e91a87a1053c 100644 --- a/tests/components/modern_forms/snapshots/test_diagnostics.ambr +++ b/tests/components/modern_forms/snapshots/test_diagnostics.ambr @@ -24,7 +24,9 @@ }), 'device': dict({ 'info': dict({ + 'brand': None, 'client_id': 'MF_000000000000', + 'date_code': '', 'device_name': 'ModernFormsFan', 'fan_motor_type': 'DC125X25', 'fan_type': '1818-56', @@ -41,13 +43,23 @@ 'status': dict({ 'adaptive_learning_enabled': False, 'away_mode_enabled': False, + 'decommission': False, + 'factory_reset': False, 'fan_direction': 'forward', 'fan_on': True, 'fan_sleep_timer': 0, 'fan_speed': 3, + 'fan_timer': None, 'light_brightness': 50, 'light_on': True, 'light_sleep_timer': 0, + 'light_timer': None, + 'reset_rf_pair_list': False, + 'rf_pair_mode_active': False, + 'schedule': '**REDACTED**', + 'user_data': '**REDACTED**', + 'wind': None, + 'wind_speed': 2, }), }), })