From 9638bee8ded1a5f2e94debfd742ac1d8b36fca65 Mon Sep 17 00:00:00 2001 From: Manu <4445816+tr4nt0r@users.noreply.github.com> Date: Mon, 6 Jan 2025 14:55:50 +0100 Subject: [PATCH] Bump pynecil to v4.0.1 (#134852) --- homeassistant/components/iron_os/icons.json | 3 -- .../components/iron_os/manifest.json | 2 +- homeassistant/components/iron_os/strings.json | 3 -- homeassistant/components/iron_os/switch.py | 9 ---- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- .../iron_os/snapshots/test_sensor.ambr | 18 ++++++++ .../iron_os/snapshots/test_switch.ambr | 46 ------------------- tests/components/iron_os/test_switch.py | 1 - 9 files changed, 21 insertions(+), 65 deletions(-) diff --git a/homeassistant/components/iron_os/icons.json b/homeassistant/components/iron_os/icons.json index b05e72565b9..ee8badf3c89 100644 --- a/homeassistant/components/iron_os/icons.json +++ b/homeassistant/components/iron_os/icons.json @@ -180,9 +180,6 @@ "invert_buttons": { "default": "mdi:plus-minus-variant" }, - "usb_pd_mode": { - "default": "mdi:meter-electric-outline" - }, "idle_screen_details": { "default": "mdi:card-bulleted-outline", "state": { diff --git a/homeassistant/components/iron_os/manifest.json b/homeassistant/components/iron_os/manifest.json index 5ba2a90507f..462e75c5b6e 100644 --- a/homeassistant/components/iron_os/manifest.json +++ b/homeassistant/components/iron_os/manifest.json @@ -13,5 +13,5 @@ "documentation": "https://www.home-assistant.io/integrations/iron_os", "iot_class": "local_polling", "loggers": ["pynecil"], - "requirements": ["pynecil==3.0.1"] + "requirements": ["pynecil==4.0.1"] } diff --git a/homeassistant/components/iron_os/strings.json b/homeassistant/components/iron_os/strings.json index 1549efba503..548ba1d8127 100644 --- a/homeassistant/components/iron_os/strings.json +++ b/homeassistant/components/iron_os/strings.json @@ -244,9 +244,6 @@ }, "calibrate_cjc": { "name": "Calibrate CJC" - }, - "usb_pd_mode": { - "name": "Power Delivery 3.1 EPR" } } }, diff --git a/homeassistant/components/iron_os/switch.py b/homeassistant/components/iron_os/switch.py index 4e14b240ffb..d88e8cfdcb5 100644 --- a/homeassistant/components/iron_os/switch.py +++ b/homeassistant/components/iron_os/switch.py @@ -39,7 +39,6 @@ class IronOSSwitch(StrEnum): INVERT_BUTTONS = "invert_buttons" DISPLAY_INVERT = "display_invert" CALIBRATE_CJC = "calibrate_cjc" - USB_PD_MODE = "usb_pd_mode" SWITCH_DESCRIPTIONS: tuple[IronOSSwitchEntityDescription, ...] = ( @@ -95,14 +94,6 @@ SWITCH_DESCRIPTIONS: tuple[IronOSSwitchEntityDescription, ...] = ( entity_registry_enabled_default=False, entity_category=EntityCategory.CONFIG, ), - IronOSSwitchEntityDescription( - key=IronOSSwitch.USB_PD_MODE, - translation_key=IronOSSwitch.USB_PD_MODE, - characteristic=CharSetting.USB_PD_MODE, - is_on_fn=lambda x: x.get("usb_pd_mode"), - entity_registry_enabled_default=False, - entity_category=EntityCategory.CONFIG, - ), ) diff --git a/requirements_all.txt b/requirements_all.txt index ca5feba4630..5f484b78dd5 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -2121,7 +2121,7 @@ pymsteams==0.1.12 pymysensors==0.24.0 # homeassistant.components.iron_os -pynecil==3.0.1 +pynecil==4.0.1 # homeassistant.components.netgear pynetgear==0.10.10 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 0635eeab2ee..e0e15818227 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -1726,7 +1726,7 @@ pymonoprice==0.4 pymysensors==0.24.0 # homeassistant.components.iron_os -pynecil==3.0.1 +pynecil==4.0.1 # homeassistant.components.netgear pynetgear==0.10.10 diff --git a/tests/components/iron_os/snapshots/test_sensor.ambr b/tests/components/iron_os/snapshots/test_sensor.ambr index 9ab5d47eec8..0eb8e81fb4f 100644 --- a/tests/components/iron_os/snapshots/test_sensor.ambr +++ b/tests/components/iron_os/snapshots/test_sensor.ambr @@ -313,6 +313,15 @@ 'sleeping', 'settings', 'debug', + 'soldering_profile', + 'temperature_adjust', + 'usb_pd_debug', + 'thermal_runaway', + 'startup_logo', + 'cjc_calibration', + 'startup_warnings', + 'initialisation_done', + 'hibernating', ]), }), 'config_entry_id': , @@ -354,6 +363,15 @@ 'sleeping', 'settings', 'debug', + 'soldering_profile', + 'temperature_adjust', + 'usb_pd_debug', + 'thermal_runaway', + 'startup_logo', + 'cjc_calibration', + 'startup_warnings', + 'initialisation_done', + 'hibernating', ]), }), 'context': , diff --git a/tests/components/iron_os/snapshots/test_switch.ambr b/tests/components/iron_os/snapshots/test_switch.ambr index 0c4f5071a48..f13cdcfe666 100644 --- a/tests/components/iron_os/snapshots/test_switch.ambr +++ b/tests/components/iron_os/snapshots/test_switch.ambr @@ -275,52 +275,6 @@ 'state': 'on', }) # --- -# name: test_switch_platform[switch.pinecil_power_delivery_3_1_epr-entry] - EntityRegistryEntrySnapshot({ - 'aliases': set({ - }), - 'area_id': None, - 'capabilities': None, - 'config_entry_id': , - 'device_class': None, - 'device_id': , - 'disabled_by': None, - 'domain': 'switch', - 'entity_category': , - 'entity_id': 'switch.pinecil_power_delivery_3_1_epr', - 'has_entity_name': True, - 'hidden_by': None, - 'icon': None, - 'id': , - 'labels': set({ - }), - 'name': None, - 'options': dict({ - }), - 'original_device_class': None, - 'original_icon': None, - 'original_name': 'Power Delivery 3.1 EPR', - 'platform': 'iron_os', - 'previous_unique_id': None, - 'supported_features': 0, - 'translation_key': , - 'unique_id': 'c0:ff:ee:c0:ff:ee_usb_pd_mode', - 'unit_of_measurement': None, - }) -# --- -# name: test_switch_platform[switch.pinecil_power_delivery_3_1_epr-state] - StateSnapshot({ - 'attributes': ReadOnlyDict({ - 'friendly_name': 'Pinecil Power Delivery 3.1 EPR', - }), - 'context': , - 'entity_id': 'switch.pinecil_power_delivery_3_1_epr', - 'last_changed': , - 'last_reported': , - 'last_updated': , - 'state': 'on', - }) -# --- # name: test_switch_platform[switch.pinecil_swap_buttons-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ diff --git a/tests/components/iron_os/test_switch.py b/tests/components/iron_os/test_switch.py index 4f964133d0a..d52c3fd333b 100644 --- a/tests/components/iron_os/test_switch.py +++ b/tests/components/iron_os/test_switch.py @@ -66,7 +66,6 @@ async def test_switch_platform( ("switch.pinecil_detailed_idle_screen", CharSetting.IDLE_SCREEN_DETAILS), ("switch.pinecil_detailed_solder_screen", CharSetting.SOLDER_SCREEN_DETAILS), ("switch.pinecil_invert_screen", CharSetting.DISPLAY_INVERT), - ("switch.pinecil_power_delivery_3_1_epr", CharSetting.USB_PD_MODE), ("switch.pinecil_swap_buttons", CharSetting.INVERT_BUTTONS), ], )