From a3dec29c72419faa4d0506da055d8bf80df35259 Mon Sep 17 00:00:00 2001 From: Sab44 <64696149+Sab44@users.noreply.github.com> Date: Tue, 23 Dec 2025 19:54:35 +0100 Subject: [PATCH] Add Computer Name to device in Libre Hardware Monitor (#159342) --- .../libre_hardware_monitor/__init__.py | 6 +- .../libre_hardware_monitor/config_flow.py | 4 +- .../libre_hardware_monitor/coordinator.py | 2 +- .../libre_hardware_monitor/manifest.json | 2 +- .../libre_hardware_monitor/sensor.py | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- .../fixtures/libre_hardware_monitor.json | 2 +- .../snapshots/test_sensor.ambr | 450 +++++++++--------- .../test_config_flow.py | 2 +- .../libre_hardware_monitor/test_init.py | 5 + .../libre_hardware_monitor/test_sensor.py | 6 +- 12 files changed, 246 insertions(+), 239 deletions(-) diff --git a/homeassistant/components/libre_hardware_monitor/__init__.py b/homeassistant/components/libre_hardware_monitor/__init__.py index 1461b4b449c..2a94cda9bac 100644 --- a/homeassistant/components/libre_hardware_monitor/__init__.py +++ b/homeassistant/components/libre_hardware_monitor/__init__.py @@ -32,15 +32,15 @@ async def async_migrate_entry( entity_registry, config_entry.entry_id ) for reg_entry in registry_entries: - new_entity_id = f"{config_entry.entry_id}_{reg_entry.unique_id[4:]}" + new_unique_id = f"{config_entry.entry_id}_{reg_entry.unique_id[4:]}" _LOGGER.debug( "Migrating entity %s unique id from %s to %s", reg_entry.entity_id, reg_entry.unique_id, - new_entity_id, + new_unique_id, ) entity_registry.async_update_entity( - reg_entry.entity_id, new_unique_id=new_entity_id + reg_entry.entity_id, new_unique_id=new_unique_id ) # Migrate device identifiers diff --git a/homeassistant/components/libre_hardware_monitor/config_flow.py b/homeassistant/components/libre_hardware_monitor/config_flow.py index 7ca51abe359..36dd1a21b24 100644 --- a/homeassistant/components/libre_hardware_monitor/config_flow.py +++ b/homeassistant/components/libre_hardware_monitor/config_flow.py @@ -46,7 +46,7 @@ class LibreHardwareMonitorConfigFlow(ConfigFlow, domain=DOMAIN): ) try: - _ = (await api.get_data()).main_device_ids_and_names.values() + computer_name = (await api.get_data()).computer_name except LibreHardwareMonitorConnectionError as exception: _LOGGER.error(exception) errors["base"] = "cannot_connect" @@ -54,7 +54,7 @@ class LibreHardwareMonitorConfigFlow(ConfigFlow, domain=DOMAIN): errors["base"] = "no_devices" else: return self.async_create_entry( - title=f"{user_input[CONF_HOST]}:{user_input[CONF_PORT]}", + title=f"{computer_name} ({user_input[CONF_HOST]}:{user_input[CONF_PORT]})", data=user_input, ) diff --git a/homeassistant/components/libre_hardware_monitor/coordinator.py b/homeassistant/components/libre_hardware_monitor/coordinator.py index e6760207417..9963e1ba55f 100644 --- a/homeassistant/components/libre_hardware_monitor/coordinator.py +++ b/homeassistant/components/libre_hardware_monitor/coordinator.py @@ -65,7 +65,7 @@ class LibreHardwareMonitorCoordinator(DataUpdateCoordinator[LibreHardwareMonitor lhm_data = await self._api.get_data() except LibreHardwareMonitorConnectionError as err: raise UpdateFailed( - "LibreHardwareMonitor connection failed, will retry" + "LibreHardwareMonitor connection failed, will retry", retry_after=30 ) from err except LibreHardwareMonitorNoDevicesError as err: raise UpdateFailed("No sensor data available, will retry") from err diff --git a/homeassistant/components/libre_hardware_monitor/manifest.json b/homeassistant/components/libre_hardware_monitor/manifest.json index 517fb0684ac..b62565c7757 100644 --- a/homeassistant/components/libre_hardware_monitor/manifest.json +++ b/homeassistant/components/libre_hardware_monitor/manifest.json @@ -7,5 +7,5 @@ "integration_type": "device", "iot_class": "local_polling", "quality_scale": "silver", - "requirements": ["librehardwaremonitor-api==1.5.0"] + "requirements": ["librehardwaremonitor-api==1.6.0"] } diff --git a/homeassistant/components/libre_hardware_monitor/sensor.py b/homeassistant/components/libre_hardware_monitor/sensor.py index bfebce1f6c3..c56bb75fc10 100644 --- a/homeassistant/components/libre_hardware_monitor/sensor.py +++ b/homeassistant/components/libre_hardware_monitor/sensor.py @@ -66,7 +66,7 @@ class LibreHardwareMonitorSensor( # Hardware device self._attr_device_info = DeviceInfo( identifiers={(DOMAIN, f"{entry_id}_{sensor_data.device_id}")}, - name=sensor_data.device_name, + name=f"[{coordinator.data.computer_name}] {sensor_data.device_name}", model=sensor_data.device_type, ) diff --git a/requirements_all.txt b/requirements_all.txt index d44d71fbd52..ad16bcad149 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1391,7 +1391,7 @@ libpyfoscamcgi==0.0.9 libpyvivotek==0.6.1 # homeassistant.components.libre_hardware_monitor -librehardwaremonitor-api==1.5.0 +librehardwaremonitor-api==1.6.0 # homeassistant.components.mikrotik librouteros==3.2.0 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index d7df0b43480..575e45611b7 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -1222,7 +1222,7 @@ libpyfoscamcgi==0.0.9 libpyvivotek==0.6.1 # homeassistant.components.libre_hardware_monitor -librehardwaremonitor-api==1.5.0 +librehardwaremonitor-api==1.6.0 # homeassistant.components.mikrotik librouteros==3.2.0 diff --git a/tests/components/libre_hardware_monitor/fixtures/libre_hardware_monitor.json b/tests/components/libre_hardware_monitor/fixtures/libre_hardware_monitor.json index 0e4c6309ba3..640c507c7da 100644 --- a/tests/components/libre_hardware_monitor/fixtures/libre_hardware_monitor.json +++ b/tests/components/libre_hardware_monitor/fixtures/libre_hardware_monitor.json @@ -8,7 +8,7 @@ "Children": [ { "id": 1, - "Text": "GAMING", + "Text": "GAMING-PC", "Min": "", "Value": "", "Max": "", diff --git a/tests/components/libre_hardware_monitor/snapshots/test_sensor.ambr b/tests/components/libre_hardware_monitor/snapshots/test_sensor.ambr index 705d4f4d887..e61fe131bd3 100644 --- a/tests/components/libre_hardware_monitor/snapshots/test_sensor.ambr +++ b/tests/components/libre_hardware_monitor/snapshots/test_sensor.ambr @@ -1,5 +1,5 @@ # serializer version: 1 -# name: test_sensors_are_created[sensor.amd_ryzen_7_7800x3d_core_tctl_tdie_temperature-entry] +# name: test_sensors_are_created[sensor.gaming_pc_amd_ryzen_7_7800x3d_core_tctl_tdie_temperature-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -14,7 +14,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.amd_ryzen_7_7800x3d_core_tctl_tdie_temperature', + 'entity_id': 'sensor.gaming_pc_amd_ryzen_7_7800x3d_core_tctl_tdie_temperature', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -36,24 +36,24 @@ 'unit_of_measurement': '°C', }) # --- -# name: test_sensors_are_created[sensor.amd_ryzen_7_7800x3d_core_tctl_tdie_temperature-state] +# name: test_sensors_are_created[sensor.gaming_pc_amd_ryzen_7_7800x3d_core_tctl_tdie_temperature-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'AMD Ryzen 7 7800X3D Core (Tctl/Tdie) Temperature', + 'friendly_name': '[GAMING-PC] AMD Ryzen 7 7800X3D Core (Tctl/Tdie) Temperature', 'max_value': '69.1', 'min_value': '39.4', 'state_class': , 'unit_of_measurement': '°C', }), 'context': , - 'entity_id': 'sensor.amd_ryzen_7_7800x3d_core_tctl_tdie_temperature', + 'entity_id': 'sensor.gaming_pc_amd_ryzen_7_7800x3d_core_tctl_tdie_temperature', 'last_changed': , 'last_reported': , 'last_updated': , 'state': '55.5', }) # --- -# name: test_sensors_are_created[sensor.amd_ryzen_7_7800x3d_cpu_total_load-entry] +# name: test_sensors_are_created[sensor.gaming_pc_amd_ryzen_7_7800x3d_cpu_total_load-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -68,7 +68,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.amd_ryzen_7_7800x3d_cpu_total_load', + 'entity_id': 'sensor.gaming_pc_amd_ryzen_7_7800x3d_cpu_total_load', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -90,24 +90,24 @@ 'unit_of_measurement': '%', }) # --- -# name: test_sensors_are_created[sensor.amd_ryzen_7_7800x3d_cpu_total_load-state] +# name: test_sensors_are_created[sensor.gaming_pc_amd_ryzen_7_7800x3d_cpu_total_load-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'AMD Ryzen 7 7800X3D CPU Total Load', + 'friendly_name': '[GAMING-PC] AMD Ryzen 7 7800X3D CPU Total Load', 'max_value': '55.8', 'min_value': '0.0', 'state_class': , 'unit_of_measurement': '%', }), 'context': , - 'entity_id': 'sensor.amd_ryzen_7_7800x3d_cpu_total_load', + 'entity_id': 'sensor.gaming_pc_amd_ryzen_7_7800x3d_cpu_total_load', 'last_changed': , 'last_reported': , 'last_updated': , 'state': '9.1', }) # --- -# name: test_sensors_are_created[sensor.amd_ryzen_7_7800x3d_package_power-entry] +# name: test_sensors_are_created[sensor.gaming_pc_amd_ryzen_7_7800x3d_package_power-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -122,7 +122,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.amd_ryzen_7_7800x3d_package_power', + 'entity_id': 'sensor.gaming_pc_amd_ryzen_7_7800x3d_package_power', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -144,24 +144,24 @@ 'unit_of_measurement': 'W', }) # --- -# name: test_sensors_are_created[sensor.amd_ryzen_7_7800x3d_package_power-state] +# name: test_sensors_are_created[sensor.gaming_pc_amd_ryzen_7_7800x3d_package_power-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'AMD Ryzen 7 7800X3D Package Power', + 'friendly_name': '[GAMING-PC] AMD Ryzen 7 7800X3D Package Power', 'max_value': '70.1', 'min_value': '25.1', 'state_class': , 'unit_of_measurement': 'W', }), 'context': , - 'entity_id': 'sensor.amd_ryzen_7_7800x3d_package_power', + 'entity_id': 'sensor.gaming_pc_amd_ryzen_7_7800x3d_package_power', 'last_changed': , 'last_reported': , 'last_updated': , 'state': '39.6', }) # --- -# name: test_sensors_are_created[sensor.amd_ryzen_7_7800x3d_package_temperature-entry] +# name: test_sensors_are_created[sensor.gaming_pc_amd_ryzen_7_7800x3d_package_temperature-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -176,7 +176,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.amd_ryzen_7_7800x3d_package_temperature', + 'entity_id': 'sensor.gaming_pc_amd_ryzen_7_7800x3d_package_temperature', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -198,24 +198,24 @@ 'unit_of_measurement': '°C', }) # --- -# name: test_sensors_are_created[sensor.amd_ryzen_7_7800x3d_package_temperature-state] +# name: test_sensors_are_created[sensor.gaming_pc_amd_ryzen_7_7800x3d_package_temperature-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'AMD Ryzen 7 7800X3D Package Temperature', + 'friendly_name': '[GAMING-PC] AMD Ryzen 7 7800X3D Package Temperature', 'max_value': '74.0', 'min_value': '38.4', 'state_class': , 'unit_of_measurement': '°C', }), 'context': , - 'entity_id': 'sensor.amd_ryzen_7_7800x3d_package_temperature', + 'entity_id': 'sensor.gaming_pc_amd_ryzen_7_7800x3d_package_temperature', 'last_changed': , 'last_reported': , 'last_updated': , 'state': '52.8', }) # --- -# name: test_sensors_are_created[sensor.amd_ryzen_7_7800x3d_vddcr_soc_voltage-entry] +# name: test_sensors_are_created[sensor.gaming_pc_amd_ryzen_7_7800x3d_vddcr_soc_voltage-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -230,7 +230,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.amd_ryzen_7_7800x3d_vddcr_soc_voltage', + 'entity_id': 'sensor.gaming_pc_amd_ryzen_7_7800x3d_vddcr_soc_voltage', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -252,24 +252,24 @@ 'unit_of_measurement': 'V', }) # --- -# name: test_sensors_are_created[sensor.amd_ryzen_7_7800x3d_vddcr_soc_voltage-state] +# name: test_sensors_are_created[sensor.gaming_pc_amd_ryzen_7_7800x3d_vddcr_soc_voltage-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'AMD Ryzen 7 7800X3D VDDCR SoC Voltage', + 'friendly_name': '[GAMING-PC] AMD Ryzen 7 7800X3D VDDCR SoC Voltage', 'max_value': '1.306', 'min_value': '1.305', 'state_class': , 'unit_of_measurement': 'V', }), 'context': , - 'entity_id': 'sensor.amd_ryzen_7_7800x3d_vddcr_soc_voltage', + 'entity_id': 'sensor.gaming_pc_amd_ryzen_7_7800x3d_vddcr_soc_voltage', 'last_changed': , 'last_reported': , 'last_updated': , 'state': '1.305', }) # --- -# name: test_sensors_are_created[sensor.amd_ryzen_7_7800x3d_vddcr_voltage-entry] +# name: test_sensors_are_created[sensor.gaming_pc_amd_ryzen_7_7800x3d_vddcr_voltage-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -284,7 +284,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.amd_ryzen_7_7800x3d_vddcr_voltage', + 'entity_id': 'sensor.gaming_pc_amd_ryzen_7_7800x3d_vddcr_voltage', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -306,24 +306,24 @@ 'unit_of_measurement': 'V', }) # --- -# name: test_sensors_are_created[sensor.amd_ryzen_7_7800x3d_vddcr_voltage-state] +# name: test_sensors_are_created[sensor.gaming_pc_amd_ryzen_7_7800x3d_vddcr_voltage-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'AMD Ryzen 7 7800X3D VDDCR Voltage', + 'friendly_name': '[GAMING-PC] AMD Ryzen 7 7800X3D VDDCR Voltage', 'max_value': '1.173', 'min_value': '0.452', 'state_class': , 'unit_of_measurement': 'V', }), 'context': , - 'entity_id': 'sensor.amd_ryzen_7_7800x3d_vddcr_voltage', + 'entity_id': 'sensor.gaming_pc_amd_ryzen_7_7800x3d_vddcr_voltage', 'last_changed': , 'last_reported': , 'last_updated': , 'state': '1.083', }) # --- -# name: test_sensors_are_created[sensor.msi_mag_b650m_mortar_wifi_ms_7d76_12v_voltage-entry] +# name: test_sensors_are_created[sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_12v_voltage-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -338,7 +338,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.msi_mag_b650m_mortar_wifi_ms_7d76_12v_voltage', + 'entity_id': 'sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_12v_voltage', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -360,24 +360,24 @@ 'unit_of_measurement': 'V', }) # --- -# name: test_sensors_are_created[sensor.msi_mag_b650m_mortar_wifi_ms_7d76_12v_voltage-state] +# name: test_sensors_are_created[sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_12v_voltage-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'MSI MAG B650M MORTAR WIFI (MS-7D76) +12V Voltage', + 'friendly_name': '[GAMING-PC] MSI MAG B650M MORTAR WIFI (MS-7D76) +12V Voltage', 'max_value': '12.096', 'min_value': '12.048', 'state_class': , 'unit_of_measurement': 'V', }), 'context': , - 'entity_id': 'sensor.msi_mag_b650m_mortar_wifi_ms_7d76_12v_voltage', + 'entity_id': 'sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_12v_voltage', 'last_changed': , 'last_reported': , 'last_updated': , 'state': '12.072', }) # --- -# name: test_sensors_are_created[sensor.msi_mag_b650m_mortar_wifi_ms_7d76_5v_voltage-entry] +# name: test_sensors_are_created[sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_5v_voltage-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -392,7 +392,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.msi_mag_b650m_mortar_wifi_ms_7d76_5v_voltage', + 'entity_id': 'sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_5v_voltage', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -414,24 +414,24 @@ 'unit_of_measurement': 'V', }) # --- -# name: test_sensors_are_created[sensor.msi_mag_b650m_mortar_wifi_ms_7d76_5v_voltage-state] +# name: test_sensors_are_created[sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_5v_voltage-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'MSI MAG B650M MORTAR WIFI (MS-7D76) +5V Voltage', + 'friendly_name': '[GAMING-PC] MSI MAG B650M MORTAR WIFI (MS-7D76) +5V Voltage', 'max_value': '5.050', 'min_value': '5.020', 'state_class': , 'unit_of_measurement': 'V', }), 'context': , - 'entity_id': 'sensor.msi_mag_b650m_mortar_wifi_ms_7d76_5v_voltage', + 'entity_id': 'sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_5v_voltage', 'last_changed': , 'last_reported': , 'last_updated': , 'state': '5.030', }) # --- -# name: test_sensors_are_created[sensor.msi_mag_b650m_mortar_wifi_ms_7d76_cpu_fan_fan-entry] +# name: test_sensors_are_created[sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_cpu_fan_fan-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -446,7 +446,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.msi_mag_b650m_mortar_wifi_ms_7d76_cpu_fan_fan', + 'entity_id': 'sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_cpu_fan_fan', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -468,24 +468,24 @@ 'unit_of_measurement': 'RPM', }) # --- -# name: test_sensors_are_created[sensor.msi_mag_b650m_mortar_wifi_ms_7d76_cpu_fan_fan-state] +# name: test_sensors_are_created[sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_cpu_fan_fan-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'MSI MAG B650M MORTAR WIFI (MS-7D76) CPU Fan Fan', + 'friendly_name': '[GAMING-PC] MSI MAG B650M MORTAR WIFI (MS-7D76) CPU Fan Fan', 'max_value': '0', 'min_value': '0', 'state_class': , 'unit_of_measurement': 'RPM', }), 'context': , - 'entity_id': 'sensor.msi_mag_b650m_mortar_wifi_ms_7d76_cpu_fan_fan', + 'entity_id': 'sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_cpu_fan_fan', 'last_changed': , 'last_reported': , 'last_updated': , 'state': '0', }) # --- -# name: test_sensors_are_created[sensor.msi_mag_b650m_mortar_wifi_ms_7d76_cpu_temperature-entry] +# name: test_sensors_are_created[sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_cpu_temperature-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -500,7 +500,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.msi_mag_b650m_mortar_wifi_ms_7d76_cpu_temperature', + 'entity_id': 'sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_cpu_temperature', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -522,24 +522,24 @@ 'unit_of_measurement': '°C', }) # --- -# name: test_sensors_are_created[sensor.msi_mag_b650m_mortar_wifi_ms_7d76_cpu_temperature-state] +# name: test_sensors_are_created[sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_cpu_temperature-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'MSI MAG B650M MORTAR WIFI (MS-7D76) CPU Temperature', + 'friendly_name': '[GAMING-PC] MSI MAG B650M MORTAR WIFI (MS-7D76) CPU Temperature', 'max_value': '68.0', 'min_value': '39.0', 'state_class': , 'unit_of_measurement': '°C', }), 'context': , - 'entity_id': 'sensor.msi_mag_b650m_mortar_wifi_ms_7d76_cpu_temperature', + 'entity_id': 'sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_cpu_temperature', 'last_changed': , 'last_reported': , 'last_updated': , 'state': '55.0', }) # --- -# name: test_sensors_are_created[sensor.msi_mag_b650m_mortar_wifi_ms_7d76_pump_fan_fan-entry] +# name: test_sensors_are_created[sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_pump_fan_fan-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -554,7 +554,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.msi_mag_b650m_mortar_wifi_ms_7d76_pump_fan_fan', + 'entity_id': 'sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_pump_fan_fan', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -576,24 +576,24 @@ 'unit_of_measurement': 'RPM', }) # --- -# name: test_sensors_are_created[sensor.msi_mag_b650m_mortar_wifi_ms_7d76_pump_fan_fan-state] +# name: test_sensors_are_created[sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_pump_fan_fan-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'MSI MAG B650M MORTAR WIFI (MS-7D76) Pump Fan Fan', + 'friendly_name': '[GAMING-PC] MSI MAG B650M MORTAR WIFI (MS-7D76) Pump Fan Fan', 'max_value': '0', 'min_value': '0', 'state_class': , 'unit_of_measurement': 'RPM', }), 'context': , - 'entity_id': 'sensor.msi_mag_b650m_mortar_wifi_ms_7d76_pump_fan_fan', + 'entity_id': 'sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_pump_fan_fan', 'last_changed': , 'last_reported': , 'last_updated': , 'state': '0', }) # --- -# name: test_sensors_are_created[sensor.msi_mag_b650m_mortar_wifi_ms_7d76_system_fan_1_fan-entry] +# name: test_sensors_are_created[sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_system_fan_1_fan-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -608,7 +608,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.msi_mag_b650m_mortar_wifi_ms_7d76_system_fan_1_fan', + 'entity_id': 'sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_system_fan_1_fan', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -630,23 +630,23 @@ 'unit_of_measurement': None, }) # --- -# name: test_sensors_are_created[sensor.msi_mag_b650m_mortar_wifi_ms_7d76_system_fan_1_fan-state] +# name: test_sensors_are_created[sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_system_fan_1_fan-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'MSI MAG B650M MORTAR WIFI (MS-7D76) System Fan #1 Fan', + 'friendly_name': '[GAMING-PC] MSI MAG B650M MORTAR WIFI (MS-7D76) System Fan #1 Fan', 'max_value': None, 'min_value': None, 'state_class': , }), 'context': , - 'entity_id': 'sensor.msi_mag_b650m_mortar_wifi_ms_7d76_system_fan_1_fan', + 'entity_id': 'sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_system_fan_1_fan', 'last_changed': , 'last_reported': , 'last_updated': , 'state': 'unknown', }) # --- -# name: test_sensors_are_created[sensor.msi_mag_b650m_mortar_wifi_ms_7d76_system_temperature-entry] +# name: test_sensors_are_created[sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_system_temperature-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -661,7 +661,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.msi_mag_b650m_mortar_wifi_ms_7d76_system_temperature', + 'entity_id': 'sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_system_temperature', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -683,24 +683,24 @@ 'unit_of_measurement': '°C', }) # --- -# name: test_sensors_are_created[sensor.msi_mag_b650m_mortar_wifi_ms_7d76_system_temperature-state] +# name: test_sensors_are_created[sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_system_temperature-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'MSI MAG B650M MORTAR WIFI (MS-7D76) System Temperature', + 'friendly_name': '[GAMING-PC] MSI MAG B650M MORTAR WIFI (MS-7D76) System Temperature', 'max_value': '46.5', 'min_value': '32.5', 'state_class': , 'unit_of_measurement': '°C', }), 'context': , - 'entity_id': 'sensor.msi_mag_b650m_mortar_wifi_ms_7d76_system_temperature', + 'entity_id': 'sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_system_temperature', 'last_changed': , 'last_reported': , 'last_updated': , 'state': '45.5', }) # --- -# name: test_sensors_are_created[sensor.msi_mag_b650m_mortar_wifi_ms_7d76_vcore_voltage-entry] +# name: test_sensors_are_created[sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_vcore_voltage-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -715,7 +715,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.msi_mag_b650m_mortar_wifi_ms_7d76_vcore_voltage', + 'entity_id': 'sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_vcore_voltage', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -737,24 +737,24 @@ 'unit_of_measurement': 'V', }) # --- -# name: test_sensors_are_created[sensor.msi_mag_b650m_mortar_wifi_ms_7d76_vcore_voltage-state] +# name: test_sensors_are_created[sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_vcore_voltage-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'MSI MAG B650M MORTAR WIFI (MS-7D76) Vcore Voltage', + 'friendly_name': '[GAMING-PC] MSI MAG B650M MORTAR WIFI (MS-7D76) Vcore Voltage', 'max_value': '1.318', 'min_value': '1.310', 'state_class': , 'unit_of_measurement': 'V', }), 'context': , - 'entity_id': 'sensor.msi_mag_b650m_mortar_wifi_ms_7d76_vcore_voltage', + 'entity_id': 'sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_vcore_voltage', 'last_changed': , 'last_reported': , 'last_updated': , 'state': '1.312', }) # --- -# name: test_sensors_are_created[sensor.nvidia_geforce_rtx_4080_super_gpu_core_clock-entry] +# name: test_sensors_are_created[sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_core_clock-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -769,7 +769,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_core_clock', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_core_clock', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -791,24 +791,24 @@ 'unit_of_measurement': 'MHz', }) # --- -# name: test_sensors_are_created[sensor.nvidia_geforce_rtx_4080_super_gpu_core_clock-state] +# name: test_sensors_are_created[sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_core_clock-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'NVIDIA GeForce RTX 4080 SUPER GPU Core Clock', + 'friendly_name': '[GAMING-PC] NVIDIA GeForce RTX 4080 SUPER GPU Core Clock', 'max_value': '2805.0', 'min_value': '210.0', 'state_class': , 'unit_of_measurement': 'MHz', }), 'context': , - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_core_clock', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_core_clock', 'last_changed': , 'last_reported': , 'last_updated': , 'state': '2805.0', }) # --- -# name: test_sensors_are_created[sensor.nvidia_geforce_rtx_4080_super_gpu_core_load-entry] +# name: test_sensors_are_created[sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_core_load-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -823,7 +823,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_core_load', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_core_load', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -845,24 +845,24 @@ 'unit_of_measurement': '%', }) # --- -# name: test_sensors_are_created[sensor.nvidia_geforce_rtx_4080_super_gpu_core_load-state] +# name: test_sensors_are_created[sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_core_load-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'NVIDIA GeForce RTX 4080 SUPER GPU Core Load', + 'friendly_name': '[GAMING-PC] NVIDIA GeForce RTX 4080 SUPER GPU Core Load', 'max_value': '19.0', 'min_value': '0.0', 'state_class': , 'unit_of_measurement': '%', }), 'context': , - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_core_load', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_core_load', 'last_changed': , 'last_reported': , 'last_updated': , 'state': '5.0', }) # --- -# name: test_sensors_are_created[sensor.nvidia_geforce_rtx_4080_super_gpu_core_temperature-entry] +# name: test_sensors_are_created[sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_core_temperature-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -877,7 +877,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_core_temperature', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_core_temperature', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -899,24 +899,24 @@ 'unit_of_measurement': '°C', }) # --- -# name: test_sensors_are_created[sensor.nvidia_geforce_rtx_4080_super_gpu_core_temperature-state] +# name: test_sensors_are_created[sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_core_temperature-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'NVIDIA GeForce RTX 4080 SUPER GPU Core Temperature', + 'friendly_name': '[GAMING-PC] NVIDIA GeForce RTX 4080 SUPER GPU Core Temperature', 'max_value': '37.0', 'min_value': '25.0', 'state_class': , 'unit_of_measurement': '°C', }), 'context': , - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_core_temperature', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_core_temperature', 'last_changed': , 'last_reported': , 'last_updated': , 'state': '36.0', }) # --- -# name: test_sensors_are_created[sensor.nvidia_geforce_rtx_4080_super_gpu_fan_1_fan-entry] +# name: test_sensors_are_created[sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_fan_1_fan-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -931,7 +931,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_fan_1_fan', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_fan_1_fan', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -953,24 +953,24 @@ 'unit_of_measurement': 'RPM', }) # --- -# name: test_sensors_are_created[sensor.nvidia_geforce_rtx_4080_super_gpu_fan_1_fan-state] +# name: test_sensors_are_created[sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_fan_1_fan-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'NVIDIA GeForce RTX 4080 SUPER GPU Fan 1 Fan', + 'friendly_name': '[GAMING-PC] NVIDIA GeForce RTX 4080 SUPER GPU Fan 1 Fan', 'max_value': '0', 'min_value': '0', 'state_class': , 'unit_of_measurement': 'RPM', }), 'context': , - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_fan_1_fan', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_fan_1_fan', 'last_changed': , 'last_reported': , 'last_updated': , 'state': '0', }) # --- -# name: test_sensors_are_created[sensor.nvidia_geforce_rtx_4080_super_gpu_fan_2_fan-entry] +# name: test_sensors_are_created[sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_fan_2_fan-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -985,7 +985,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_fan_2_fan', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_fan_2_fan', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -1007,24 +1007,24 @@ 'unit_of_measurement': 'RPM', }) # --- -# name: test_sensors_are_created[sensor.nvidia_geforce_rtx_4080_super_gpu_fan_2_fan-state] +# name: test_sensors_are_created[sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_fan_2_fan-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'NVIDIA GeForce RTX 4080 SUPER GPU Fan 2 Fan', + 'friendly_name': '[GAMING-PC] NVIDIA GeForce RTX 4080 SUPER GPU Fan 2 Fan', 'max_value': '0', 'min_value': '0', 'state_class': , 'unit_of_measurement': 'RPM', }), 'context': , - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_fan_2_fan', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_fan_2_fan', 'last_changed': , 'last_reported': , 'last_updated': , 'state': '0', }) # --- -# name: test_sensors_are_created[sensor.nvidia_geforce_rtx_4080_super_gpu_hot_spot_temperature-entry] +# name: test_sensors_are_created[sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_hot_spot_temperature-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -1039,7 +1039,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_hot_spot_temperature', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_hot_spot_temperature', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -1061,24 +1061,24 @@ 'unit_of_measurement': '°C', }) # --- -# name: test_sensors_are_created[sensor.nvidia_geforce_rtx_4080_super_gpu_hot_spot_temperature-state] +# name: test_sensors_are_created[sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_hot_spot_temperature-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'NVIDIA GeForce RTX 4080 SUPER GPU Hot Spot Temperature', + 'friendly_name': '[GAMING-PC] NVIDIA GeForce RTX 4080 SUPER GPU Hot Spot Temperature', 'max_value': '43.3', 'min_value': '32.5', 'state_class': , 'unit_of_measurement': '°C', }), 'context': , - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_hot_spot_temperature', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_hot_spot_temperature', 'last_changed': , 'last_reported': , 'last_updated': , 'state': '43.0', }) # --- -# name: test_sensors_are_created[sensor.nvidia_geforce_rtx_4080_super_gpu_memory_clock-entry] +# name: test_sensors_are_created[sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_memory_clock-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -1093,7 +1093,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_memory_clock', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_memory_clock', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -1115,24 +1115,24 @@ 'unit_of_measurement': 'MHz', }) # --- -# name: test_sensors_are_created[sensor.nvidia_geforce_rtx_4080_super_gpu_memory_clock-state] +# name: test_sensors_are_created[sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_memory_clock-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'NVIDIA GeForce RTX 4080 SUPER GPU Memory Clock', + 'friendly_name': '[GAMING-PC] NVIDIA GeForce RTX 4080 SUPER GPU Memory Clock', 'max_value': '11502.0', 'min_value': '405.0', 'state_class': , 'unit_of_measurement': 'MHz', }), 'context': , - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_memory_clock', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_memory_clock', 'last_changed': , 'last_reported': , 'last_updated': , 'state': '11252.0', }) # --- -# name: test_sensors_are_created[sensor.nvidia_geforce_rtx_4080_super_gpu_memory_controller_load-entry] +# name: test_sensors_are_created[sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_memory_controller_load-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -1147,7 +1147,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_memory_controller_load', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_memory_controller_load', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -1169,24 +1169,24 @@ 'unit_of_measurement': '%', }) # --- -# name: test_sensors_are_created[sensor.nvidia_geforce_rtx_4080_super_gpu_memory_controller_load-state] +# name: test_sensors_are_created[sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_memory_controller_load-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'NVIDIA GeForce RTX 4080 SUPER GPU Memory Controller Load', + 'friendly_name': '[GAMING-PC] NVIDIA GeForce RTX 4080 SUPER GPU Memory Controller Load', 'max_value': '49.0', 'min_value': '0.0', 'state_class': , 'unit_of_measurement': '%', }), 'context': , - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_memory_controller_load', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_memory_controller_load', 'last_changed': , 'last_reported': , 'last_updated': , 'state': '0.0', }) # --- -# name: test_sensors_are_created[sensor.nvidia_geforce_rtx_4080_super_gpu_package_power-entry] +# name: test_sensors_are_created[sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_package_power-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -1201,7 +1201,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_package_power', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_package_power', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -1223,24 +1223,24 @@ 'unit_of_measurement': 'W', }) # --- -# name: test_sensors_are_created[sensor.nvidia_geforce_rtx_4080_super_gpu_package_power-state] +# name: test_sensors_are_created[sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_package_power-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'NVIDIA GeForce RTX 4080 SUPER GPU Package Power', + 'friendly_name': '[GAMING-PC] NVIDIA GeForce RTX 4080 SUPER GPU Package Power', 'max_value': '66.6', 'min_value': '4.1', 'state_class': , 'unit_of_measurement': 'W', }), 'context': , - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_package_power', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_package_power', 'last_changed': , 'last_reported': , 'last_updated': , 'state': '59.6', }) # --- -# name: test_sensors_are_created[sensor.nvidia_geforce_rtx_4080_super_gpu_pcie_tx_throughput-entry] +# name: test_sensors_are_created[sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_pcie_tx_throughput-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -1255,7 +1255,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_pcie_tx_throughput', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_pcie_tx_throughput', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -1277,24 +1277,24 @@ 'unit_of_measurement': 'MB/s', }) # --- -# name: test_sensors_are_created[sensor.nvidia_geforce_rtx_4080_super_gpu_pcie_tx_throughput-state] +# name: test_sensors_are_created[sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_pcie_tx_throughput-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'NVIDIA GeForce RTX 4080 SUPER GPU PCIe Tx Throughput', + 'friendly_name': '[GAMING-PC] NVIDIA GeForce RTX 4080 SUPER GPU PCIe Tx Throughput', 'max_value': '2422.8', 'min_value': '0.0', 'state_class': , 'unit_of_measurement': 'MB/s', }), 'context': , - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_pcie_tx_throughput', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_pcie_tx_throughput', 'last_changed': , 'last_reported': , 'last_updated': , 'state': '166.1', }) # --- -# name: test_sensors_are_created[sensor.nvidia_geforce_rtx_4080_super_gpu_video_engine_load-entry] +# name: test_sensors_are_created[sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_video_engine_load-entry] EntityRegistryEntrySnapshot({ 'aliases': set({ }), @@ -1309,7 +1309,7 @@ 'disabled_by': None, 'domain': 'sensor', 'entity_category': None, - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_video_engine_load', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_video_engine_load', 'has_entity_name': True, 'hidden_by': None, 'icon': None, @@ -1331,17 +1331,17 @@ 'unit_of_measurement': '%', }) # --- -# name: test_sensors_are_created[sensor.nvidia_geforce_rtx_4080_super_gpu_video_engine_load-state] +# name: test_sensors_are_created[sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_video_engine_load-state] StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'NVIDIA GeForce RTX 4080 SUPER GPU Video Engine Load', + 'friendly_name': '[GAMING-PC] NVIDIA GeForce RTX 4080 SUPER GPU Video Engine Load', 'max_value': '99.0', 'min_value': '0.0', 'state_class': , 'unit_of_measurement': '%', }), 'context': , - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_video_engine_load', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_video_engine_load', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1352,14 +1352,14 @@ list([ StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'MSI MAG B650M MORTAR WIFI (MS-7D76) +12V Voltage', + 'friendly_name': '[GAMING-PC] MSI MAG B650M MORTAR WIFI (MS-7D76) +12V Voltage', 'max_value': '12.096', 'min_value': '12.048', 'state_class': , 'unit_of_measurement': 'V', }), 'context': , - 'entity_id': 'sensor.msi_mag_b650m_mortar_wifi_ms_7d76_12v_voltage', + 'entity_id': 'sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_12v_voltage', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1367,14 +1367,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'MSI MAG B650M MORTAR WIFI (MS-7D76) +5V Voltage', + 'friendly_name': '[GAMING-PC] MSI MAG B650M MORTAR WIFI (MS-7D76) +5V Voltage', 'max_value': '5.050', 'min_value': '5.020', 'state_class': , 'unit_of_measurement': 'V', }), 'context': , - 'entity_id': 'sensor.msi_mag_b650m_mortar_wifi_ms_7d76_5v_voltage', + 'entity_id': 'sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_5v_voltage', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1382,14 +1382,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'MSI MAG B650M MORTAR WIFI (MS-7D76) Vcore Voltage', + 'friendly_name': '[GAMING-PC] MSI MAG B650M MORTAR WIFI (MS-7D76) Vcore Voltage', 'max_value': '1.318', 'min_value': '1.310', 'state_class': , 'unit_of_measurement': 'V', }), 'context': , - 'entity_id': 'sensor.msi_mag_b650m_mortar_wifi_ms_7d76_vcore_voltage', + 'entity_id': 'sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_vcore_voltage', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1397,14 +1397,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'MSI MAG B650M MORTAR WIFI (MS-7D76) CPU Temperature', + 'friendly_name': '[GAMING-PC] MSI MAG B650M MORTAR WIFI (MS-7D76) CPU Temperature', 'max_value': '68.0', 'min_value': '39.0', 'state_class': , 'unit_of_measurement': '°C', }), 'context': , - 'entity_id': 'sensor.msi_mag_b650m_mortar_wifi_ms_7d76_cpu_temperature', + 'entity_id': 'sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_cpu_temperature', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1412,14 +1412,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'MSI MAG B650M MORTAR WIFI (MS-7D76) System Temperature', + 'friendly_name': '[GAMING-PC] MSI MAG B650M MORTAR WIFI (MS-7D76) System Temperature', 'max_value': '46.5', 'min_value': '32.5', 'state_class': , 'unit_of_measurement': '°C', }), 'context': , - 'entity_id': 'sensor.msi_mag_b650m_mortar_wifi_ms_7d76_system_temperature', + 'entity_id': 'sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_system_temperature', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1427,14 +1427,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'MSI MAG B650M MORTAR WIFI (MS-7D76) CPU Fan Fan', + 'friendly_name': '[GAMING-PC] MSI MAG B650M MORTAR WIFI (MS-7D76) CPU Fan Fan', 'max_value': '0', 'min_value': '0', 'state_class': , 'unit_of_measurement': 'RPM', }), 'context': , - 'entity_id': 'sensor.msi_mag_b650m_mortar_wifi_ms_7d76_cpu_fan_fan', + 'entity_id': 'sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_cpu_fan_fan', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1442,14 +1442,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'MSI MAG B650M MORTAR WIFI (MS-7D76) Pump Fan Fan', + 'friendly_name': '[GAMING-PC] MSI MAG B650M MORTAR WIFI (MS-7D76) Pump Fan Fan', 'max_value': '0', 'min_value': '0', 'state_class': , 'unit_of_measurement': 'RPM', }), 'context': , - 'entity_id': 'sensor.msi_mag_b650m_mortar_wifi_ms_7d76_pump_fan_fan', + 'entity_id': 'sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_pump_fan_fan', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1457,13 +1457,13 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'MSI MAG B650M MORTAR WIFI (MS-7D76) System Fan #1 Fan', + 'friendly_name': '[GAMING-PC] MSI MAG B650M MORTAR WIFI (MS-7D76) System Fan #1 Fan', 'max_value': None, 'min_value': None, 'state_class': , }), 'context': , - 'entity_id': 'sensor.msi_mag_b650m_mortar_wifi_ms_7d76_system_fan_1_fan', + 'entity_id': 'sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_system_fan_1_fan', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1471,14 +1471,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'AMD Ryzen 7 7800X3D VDDCR Voltage', + 'friendly_name': '[GAMING-PC] AMD Ryzen 7 7800X3D VDDCR Voltage', 'max_value': '1.173', 'min_value': '0.452', 'state_class': , 'unit_of_measurement': 'V', }), 'context': , - 'entity_id': 'sensor.amd_ryzen_7_7800x3d_vddcr_voltage', + 'entity_id': 'sensor.gaming_pc_amd_ryzen_7_7800x3d_vddcr_voltage', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1486,14 +1486,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'AMD Ryzen 7 7800X3D VDDCR SoC Voltage', + 'friendly_name': '[GAMING-PC] AMD Ryzen 7 7800X3D VDDCR SoC Voltage', 'max_value': '1.306', 'min_value': '1.305', 'state_class': , 'unit_of_measurement': 'V', }), 'context': , - 'entity_id': 'sensor.amd_ryzen_7_7800x3d_vddcr_soc_voltage', + 'entity_id': 'sensor.gaming_pc_amd_ryzen_7_7800x3d_vddcr_soc_voltage', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1501,14 +1501,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'AMD Ryzen 7 7800X3D Package Power', + 'friendly_name': '[GAMING-PC] AMD Ryzen 7 7800X3D Package Power', 'max_value': '70.1', 'min_value': '25.1', 'state_class': , 'unit_of_measurement': 'W', }), 'context': , - 'entity_id': 'sensor.amd_ryzen_7_7800x3d_package_power', + 'entity_id': 'sensor.gaming_pc_amd_ryzen_7_7800x3d_package_power', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1516,14 +1516,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'AMD Ryzen 7 7800X3D Core (Tctl/Tdie) Temperature', + 'friendly_name': '[GAMING-PC] AMD Ryzen 7 7800X3D Core (Tctl/Tdie) Temperature', 'max_value': '69.1', 'min_value': '39.4', 'state_class': , 'unit_of_measurement': '°C', }), 'context': , - 'entity_id': 'sensor.amd_ryzen_7_7800x3d_core_tctl_tdie_temperature', + 'entity_id': 'sensor.gaming_pc_amd_ryzen_7_7800x3d_core_tctl_tdie_temperature', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1531,14 +1531,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'AMD Ryzen 7 7800X3D Package Temperature', + 'friendly_name': '[GAMING-PC] AMD Ryzen 7 7800X3D Package Temperature', 'max_value': '74.0', 'min_value': '38.4', 'state_class': , 'unit_of_measurement': '°C', }), 'context': , - 'entity_id': 'sensor.amd_ryzen_7_7800x3d_package_temperature', + 'entity_id': 'sensor.gaming_pc_amd_ryzen_7_7800x3d_package_temperature', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1546,14 +1546,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'AMD Ryzen 7 7800X3D CPU Total Load', + 'friendly_name': '[GAMING-PC] AMD Ryzen 7 7800X3D CPU Total Load', 'max_value': '55.8', 'min_value': '0.0', 'state_class': , 'unit_of_measurement': '%', }), 'context': , - 'entity_id': 'sensor.amd_ryzen_7_7800x3d_cpu_total_load', + 'entity_id': 'sensor.gaming_pc_amd_ryzen_7_7800x3d_cpu_total_load', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1561,14 +1561,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'NVIDIA GeForce RTX 4080 SUPER GPU Package Power', + 'friendly_name': '[GAMING-PC] NVIDIA GeForce RTX 4080 SUPER GPU Package Power', 'max_value': '66.6', 'min_value': '4.1', 'state_class': , 'unit_of_measurement': 'W', }), 'context': , - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_package_power', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_package_power', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1576,14 +1576,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'NVIDIA GeForce RTX 4080 SUPER GPU Core Clock', + 'friendly_name': '[GAMING-PC] NVIDIA GeForce RTX 4080 SUPER GPU Core Clock', 'max_value': '2805.0', 'min_value': '210.0', 'state_class': , 'unit_of_measurement': 'MHz', }), 'context': , - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_core_clock', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_core_clock', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1591,14 +1591,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'NVIDIA GeForce RTX 4080 SUPER GPU Memory Clock', + 'friendly_name': '[GAMING-PC] NVIDIA GeForce RTX 4080 SUPER GPU Memory Clock', 'max_value': '11502.0', 'min_value': '405.0', 'state_class': , 'unit_of_measurement': 'MHz', }), 'context': , - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_memory_clock', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_memory_clock', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1606,14 +1606,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'NVIDIA GeForce RTX 4080 SUPER GPU Core Temperature', + 'friendly_name': '[GAMING-PC] NVIDIA GeForce RTX 4080 SUPER GPU Core Temperature', 'max_value': '37.0', 'min_value': '25.0', 'state_class': , 'unit_of_measurement': '°C', }), 'context': , - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_core_temperature', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_core_temperature', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1621,14 +1621,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'NVIDIA GeForce RTX 4080 SUPER GPU Hot Spot Temperature', + 'friendly_name': '[GAMING-PC] NVIDIA GeForce RTX 4080 SUPER GPU Hot Spot Temperature', 'max_value': '43.3', 'min_value': '32.5', 'state_class': , 'unit_of_measurement': '°C', }), 'context': , - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_hot_spot_temperature', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_hot_spot_temperature', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1636,14 +1636,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'NVIDIA GeForce RTX 4080 SUPER GPU Core Load', + 'friendly_name': '[GAMING-PC] NVIDIA GeForce RTX 4080 SUPER GPU Core Load', 'max_value': '19.0', 'min_value': '0.0', 'state_class': , 'unit_of_measurement': '%', }), 'context': , - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_core_load', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_core_load', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1651,14 +1651,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'NVIDIA GeForce RTX 4080 SUPER GPU Memory Controller Load', + 'friendly_name': '[GAMING-PC] NVIDIA GeForce RTX 4080 SUPER GPU Memory Controller Load', 'max_value': '49.0', 'min_value': '0.0', 'state_class': , 'unit_of_measurement': '%', }), 'context': , - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_memory_controller_load', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_memory_controller_load', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1666,14 +1666,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'NVIDIA GeForce RTX 4080 SUPER GPU Video Engine Load', + 'friendly_name': '[GAMING-PC] NVIDIA GeForce RTX 4080 SUPER GPU Video Engine Load', 'max_value': '99.0', 'min_value': '0.0', 'state_class': , 'unit_of_measurement': '%', }), 'context': , - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_video_engine_load', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_video_engine_load', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1681,14 +1681,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'NVIDIA GeForce RTX 4080 SUPER GPU Fan 1 Fan', + 'friendly_name': '[GAMING-PC] NVIDIA GeForce RTX 4080 SUPER GPU Fan 1 Fan', 'max_value': '0', 'min_value': '0', 'state_class': , 'unit_of_measurement': 'RPM', }), 'context': , - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_fan_1_fan', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_fan_1_fan', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1696,14 +1696,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'NVIDIA GeForce RTX 4080 SUPER GPU Fan 2 Fan', + 'friendly_name': '[GAMING-PC] NVIDIA GeForce RTX 4080 SUPER GPU Fan 2 Fan', 'max_value': '0', 'min_value': '0', 'state_class': , 'unit_of_measurement': 'RPM', }), 'context': , - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_fan_2_fan', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_fan_2_fan', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1711,14 +1711,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'NVIDIA GeForce RTX 4080 SUPER GPU PCIe Tx Throughput', + 'friendly_name': '[GAMING-PC] NVIDIA GeForce RTX 4080 SUPER GPU PCIe Tx Throughput', 'max_value': '2422.8', 'min_value': '0.0', 'state_class': , 'unit_of_measurement': 'MB/s', }), 'context': , - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_pcie_tx_throughput', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_pcie_tx_throughput', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1730,14 +1730,14 @@ list([ StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'MSI MAG B650M MORTAR WIFI (MS-7D76) +12V Voltage', + 'friendly_name': '[GAMING-PC] MSI MAG B650M MORTAR WIFI (MS-7D76) +12V Voltage', 'max_value': '12.096', 'min_value': '12.048', 'state_class': , 'unit_of_measurement': 'V', }), 'context': , - 'entity_id': 'sensor.msi_mag_b650m_mortar_wifi_ms_7d76_12v_voltage', + 'entity_id': 'sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_12v_voltage', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1745,14 +1745,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'MSI MAG B650M MORTAR WIFI (MS-7D76) +5V Voltage', + 'friendly_name': '[GAMING-PC] MSI MAG B650M MORTAR WIFI (MS-7D76) +5V Voltage', 'max_value': '5.050', 'min_value': '5.020', 'state_class': , 'unit_of_measurement': 'V', }), 'context': , - 'entity_id': 'sensor.msi_mag_b650m_mortar_wifi_ms_7d76_5v_voltage', + 'entity_id': 'sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_5v_voltage', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1760,14 +1760,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'MSI MAG B650M MORTAR WIFI (MS-7D76) Vcore Voltage', + 'friendly_name': '[GAMING-PC] MSI MAG B650M MORTAR WIFI (MS-7D76) Vcore Voltage', 'max_value': '1.318', 'min_value': '1.310', 'state_class': , 'unit_of_measurement': 'V', }), 'context': , - 'entity_id': 'sensor.msi_mag_b650m_mortar_wifi_ms_7d76_vcore_voltage', + 'entity_id': 'sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_vcore_voltage', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1775,14 +1775,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'MSI MAG B650M MORTAR WIFI (MS-7D76) CPU Temperature', + 'friendly_name': '[GAMING-PC] MSI MAG B650M MORTAR WIFI (MS-7D76) CPU Temperature', 'max_value': '68.0', 'min_value': '39.0', 'state_class': , 'unit_of_measurement': '°C', }), 'context': , - 'entity_id': 'sensor.msi_mag_b650m_mortar_wifi_ms_7d76_cpu_temperature', + 'entity_id': 'sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_cpu_temperature', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1790,14 +1790,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'MSI MAG B650M MORTAR WIFI (MS-7D76) System Temperature', + 'friendly_name': '[GAMING-PC] MSI MAG B650M MORTAR WIFI (MS-7D76) System Temperature', 'max_value': '46.5', 'min_value': '32.5', 'state_class': , 'unit_of_measurement': '°C', }), 'context': , - 'entity_id': 'sensor.msi_mag_b650m_mortar_wifi_ms_7d76_system_temperature', + 'entity_id': 'sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_system_temperature', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1805,14 +1805,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'MSI MAG B650M MORTAR WIFI (MS-7D76) CPU Fan Fan', + 'friendly_name': '[GAMING-PC] MSI MAG B650M MORTAR WIFI (MS-7D76) CPU Fan Fan', 'max_value': '0', 'min_value': '0', 'state_class': , 'unit_of_measurement': 'RPM', }), 'context': , - 'entity_id': 'sensor.msi_mag_b650m_mortar_wifi_ms_7d76_cpu_fan_fan', + 'entity_id': 'sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_cpu_fan_fan', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1820,14 +1820,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'MSI MAG B650M MORTAR WIFI (MS-7D76) Pump Fan Fan', + 'friendly_name': '[GAMING-PC] MSI MAG B650M MORTAR WIFI (MS-7D76) Pump Fan Fan', 'max_value': '0', 'min_value': '0', 'state_class': , 'unit_of_measurement': 'RPM', }), 'context': , - 'entity_id': 'sensor.msi_mag_b650m_mortar_wifi_ms_7d76_pump_fan_fan', + 'entity_id': 'sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_pump_fan_fan', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1835,13 +1835,13 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'MSI MAG B650M MORTAR WIFI (MS-7D76) System Fan #1 Fan', + 'friendly_name': '[GAMING-PC] MSI MAG B650M MORTAR WIFI (MS-7D76) System Fan #1 Fan', 'max_value': None, 'min_value': None, 'state_class': , }), 'context': , - 'entity_id': 'sensor.msi_mag_b650m_mortar_wifi_ms_7d76_system_fan_1_fan', + 'entity_id': 'sensor.gaming_pc_msi_mag_b650m_mortar_wifi_ms_7d76_system_fan_1_fan', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1849,14 +1849,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'AMD Ryzen 7 7800X3D VDDCR Voltage', + 'friendly_name': '[GAMING-PC] AMD Ryzen 7 7800X3D VDDCR Voltage', 'max_value': '1.173', 'min_value': '0.452', 'state_class': , 'unit_of_measurement': 'V', }), 'context': , - 'entity_id': 'sensor.amd_ryzen_7_7800x3d_vddcr_voltage', + 'entity_id': 'sensor.gaming_pc_amd_ryzen_7_7800x3d_vddcr_voltage', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1864,14 +1864,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'AMD Ryzen 7 7800X3D VDDCR SoC Voltage', + 'friendly_name': '[GAMING-PC] AMD Ryzen 7 7800X3D VDDCR SoC Voltage', 'max_value': '1.306', 'min_value': '1.305', 'state_class': , 'unit_of_measurement': 'V', }), 'context': , - 'entity_id': 'sensor.amd_ryzen_7_7800x3d_vddcr_soc_voltage', + 'entity_id': 'sensor.gaming_pc_amd_ryzen_7_7800x3d_vddcr_soc_voltage', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1879,14 +1879,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'AMD Ryzen 7 7800X3D Package Power', + 'friendly_name': '[GAMING-PC] AMD Ryzen 7 7800X3D Package Power', 'max_value': '70.1', 'min_value': '25.1', 'state_class': , 'unit_of_measurement': 'W', }), 'context': , - 'entity_id': 'sensor.amd_ryzen_7_7800x3d_package_power', + 'entity_id': 'sensor.gaming_pc_amd_ryzen_7_7800x3d_package_power', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1894,14 +1894,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'AMD Ryzen 7 7800X3D Core (Tctl/Tdie) Temperature', + 'friendly_name': '[GAMING-PC] AMD Ryzen 7 7800X3D Core (Tctl/Tdie) Temperature', 'max_value': '69.1', 'min_value': '39.4', 'state_class': , 'unit_of_measurement': '°C', }), 'context': , - 'entity_id': 'sensor.amd_ryzen_7_7800x3d_core_tctl_tdie_temperature', + 'entity_id': 'sensor.gaming_pc_amd_ryzen_7_7800x3d_core_tctl_tdie_temperature', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1909,14 +1909,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'AMD Ryzen 7 7800X3D Package Temperature', + 'friendly_name': '[GAMING-PC] AMD Ryzen 7 7800X3D Package Temperature', 'max_value': '74.0', 'min_value': '38.4', 'state_class': , 'unit_of_measurement': '°C', }), 'context': , - 'entity_id': 'sensor.amd_ryzen_7_7800x3d_package_temperature', + 'entity_id': 'sensor.gaming_pc_amd_ryzen_7_7800x3d_package_temperature', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1924,14 +1924,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'AMD Ryzen 7 7800X3D CPU Total Load', + 'friendly_name': '[GAMING-PC] AMD Ryzen 7 7800X3D CPU Total Load', 'max_value': '55.8', 'min_value': '0.0', 'state_class': , 'unit_of_measurement': '%', }), 'context': , - 'entity_id': 'sensor.amd_ryzen_7_7800x3d_cpu_total_load', + 'entity_id': 'sensor.gaming_pc_amd_ryzen_7_7800x3d_cpu_total_load', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1939,14 +1939,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'NVIDIA GeForce RTX 4080 SUPER GPU Package Power', + 'friendly_name': '[GAMING-PC] NVIDIA GeForce RTX 4080 SUPER GPU Package Power', 'max_value': '66.6', 'min_value': '4.1', 'state_class': , 'unit_of_measurement': 'W', }), 'context': , - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_package_power', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_package_power', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1954,14 +1954,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'NVIDIA GeForce RTX 4080 SUPER GPU Core Clock', + 'friendly_name': '[GAMING-PC] NVIDIA GeForce RTX 4080 SUPER GPU Core Clock', 'max_value': '2805.0', 'min_value': '210.0', 'state_class': , 'unit_of_measurement': 'MHz', }), 'context': , - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_core_clock', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_core_clock', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1969,14 +1969,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'NVIDIA GeForce RTX 4080 SUPER GPU Memory Clock', + 'friendly_name': '[GAMING-PC] NVIDIA GeForce RTX 4080 SUPER GPU Memory Clock', 'max_value': '11502.0', 'min_value': '405.0', 'state_class': , 'unit_of_measurement': 'MHz', }), 'context': , - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_memory_clock', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_memory_clock', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1984,14 +1984,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'NVIDIA GeForce RTX 4080 SUPER GPU Core Temperature', + 'friendly_name': '[GAMING-PC] NVIDIA GeForce RTX 4080 SUPER GPU Core Temperature', 'max_value': '37.0', 'min_value': '25.0', 'state_class': , 'unit_of_measurement': '°C', }), 'context': , - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_core_temperature', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_core_temperature', 'last_changed': , 'last_reported': , 'last_updated': , @@ -1999,14 +1999,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'NVIDIA GeForce RTX 4080 SUPER GPU Hot Spot Temperature', + 'friendly_name': '[GAMING-PC] NVIDIA GeForce RTX 4080 SUPER GPU Hot Spot Temperature', 'max_value': '43.3', 'min_value': '32.5', 'state_class': , 'unit_of_measurement': '°C', }), 'context': , - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_hot_spot_temperature', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_hot_spot_temperature', 'last_changed': , 'last_reported': , 'last_updated': , @@ -2014,14 +2014,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'NVIDIA GeForce RTX 4080 SUPER GPU Core Load', + 'friendly_name': '[GAMING-PC] NVIDIA GeForce RTX 4080 SUPER GPU Core Load', 'max_value': '19.0', 'min_value': '0.0', 'state_class': , 'unit_of_measurement': '%', }), 'context': , - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_core_load', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_core_load', 'last_changed': , 'last_reported': , 'last_updated': , @@ -2029,14 +2029,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'NVIDIA GeForce RTX 4080 SUPER GPU Memory Controller Load', + 'friendly_name': '[GAMING-PC] NVIDIA GeForce RTX 4080 SUPER GPU Memory Controller Load', 'max_value': '49.0', 'min_value': '0.0', 'state_class': , 'unit_of_measurement': '%', }), 'context': , - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_memory_controller_load', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_memory_controller_load', 'last_changed': , 'last_reported': , 'last_updated': , @@ -2044,14 +2044,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'NVIDIA GeForce RTX 4080 SUPER GPU Video Engine Load', + 'friendly_name': '[GAMING-PC] NVIDIA GeForce RTX 4080 SUPER GPU Video Engine Load', 'max_value': '99.0', 'min_value': '0.0', 'state_class': , 'unit_of_measurement': '%', }), 'context': , - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_video_engine_load', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_video_engine_load', 'last_changed': , 'last_reported': , 'last_updated': , @@ -2059,14 +2059,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'NVIDIA GeForce RTX 4080 SUPER GPU Fan 1 Fan', + 'friendly_name': '[GAMING-PC] NVIDIA GeForce RTX 4080 SUPER GPU Fan 1 Fan', 'max_value': '0', 'min_value': '0', 'state_class': , 'unit_of_measurement': 'RPM', }), 'context': , - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_fan_1_fan', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_fan_1_fan', 'last_changed': , 'last_reported': , 'last_updated': , @@ -2074,14 +2074,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'NVIDIA GeForce RTX 4080 SUPER GPU Fan 2 Fan', + 'friendly_name': '[GAMING-PC] NVIDIA GeForce RTX 4080 SUPER GPU Fan 2 Fan', 'max_value': '0', 'min_value': '0', 'state_class': , 'unit_of_measurement': 'RPM', }), 'context': , - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_fan_2_fan', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_fan_2_fan', 'last_changed': , 'last_reported': , 'last_updated': , @@ -2089,14 +2089,14 @@ }), StateSnapshot({ 'attributes': ReadOnlyDict({ - 'friendly_name': 'NVIDIA GeForce RTX 4080 SUPER GPU PCIe Tx Throughput', + 'friendly_name': '[GAMING-PC] NVIDIA GeForce RTX 4080 SUPER GPU PCIe Tx Throughput', 'max_value': '2422.8', 'min_value': '0.0', 'state_class': , 'unit_of_measurement': 'MB/s', }), 'context': , - 'entity_id': 'sensor.nvidia_geforce_rtx_4080_super_gpu_pcie_tx_throughput', + 'entity_id': 'sensor.gaming_pc_nvidia_geforce_rtx_4080_super_gpu_pcie_tx_throughput', 'last_changed': , 'last_reported': , 'last_updated': , diff --git a/tests/components/libre_hardware_monitor/test_config_flow.py b/tests/components/libre_hardware_monitor/test_config_flow.py index 9fcab5daeba..cc82a170d07 100644 --- a/tests/components/libre_hardware_monitor/test_config_flow.py +++ b/tests/components/libre_hardware_monitor/test_config_flow.py @@ -42,7 +42,7 @@ async def test_create_entry( mock_config_entry = result["result"] assert ( mock_config_entry.title - == f"{VALID_CONFIG[CONF_HOST]}:{VALID_CONFIG[CONF_PORT]}" + == f"GAMING-PC ({VALID_CONFIG[CONF_HOST]}:{VALID_CONFIG[CONF_PORT]})" ) assert mock_config_entry.data == VALID_CONFIG diff --git a/tests/components/libre_hardware_monitor/test_init.py b/tests/components/libre_hardware_monitor/test_init.py index 67f6e96b74f..851fdb768dd 100644 --- a/tests/components/libre_hardware_monitor/test_init.py +++ b/tests/components/libre_hardware_monitor/test_init.py @@ -88,3 +88,8 @@ async def test_migration_to_unique_ids( assert ( entity_registry.async_get_entity_id("sensor", DOMAIN, legacy_entity_id) is None ) + + updated_config_entry = hass.config_entries.async_get_entry( + legacy_config_entry_v1.entry_id + ) + assert updated_config_entry.version == 2 diff --git a/tests/components/libre_hardware_monitor/test_sensor.py b/tests/components/libre_hardware_monitor/test_sensor.py index f3388d77b80..326ad958177 100644 --- a/tests/components/libre_hardware_monitor/test_sensor.py +++ b/tests/components/libre_hardware_monitor/test_sensor.py @@ -92,7 +92,7 @@ async def test_sensors_are_updated( """Test sensors are updated with properly formatted values.""" await init_integration(hass, mock_config_entry) - entity_id = "sensor.amd_ryzen_7_7800x3d_package_temperature" + entity_id = "sensor.gaming_pc_amd_ryzen_7_7800x3d_package_temperature" state = hass.states.get(entity_id) assert state @@ -128,7 +128,7 @@ async def test_sensor_state_is_unknown_when_no_sensor_data_is_provided( """Test sensor state is unknown when sensor data is missing.""" await init_integration(hass, mock_config_entry) - entity_id = "sensor.amd_ryzen_7_7800x3d_package_temperature" + entity_id = "sensor.gaming_pc_amd_ryzen_7_7800x3d_package_temperature" state = hass.states.get(entity_id) @@ -200,6 +200,7 @@ async def _mock_orphaned_device( previous_data = mock_lhm_client.get_data.return_value mock_lhm_client.get_data.return_value = LibreHardwareMonitorData( + computer_name=mock_lhm_client.get_data.return_value.computer_name, main_device_ids_and_names=MappingProxyType( { device_id: name @@ -230,6 +231,7 @@ async def test_integration_does_not_log_new_devices_on_first_refresh( ) -> None: """Test that initial data update does not cause warning about new devices.""" mock_lhm_client.get_data.return_value = LibreHardwareMonitorData( + computer_name=mock_lhm_client.get_data.return_value.computer_name, main_device_ids_and_names=MappingProxyType( { **mock_lhm_client.get_data.return_value.main_device_ids_and_names,