mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Remove unused variable in test util for NUT (#143304)
This commit is contained in:
parent
b97d8e163d
commit
eb642e8a06
@ -125,7 +125,6 @@ async def test_pdu_devices_with_unique_ids(
|
|||||||
_test_sensor_and_attributes(
|
_test_sensor_and_attributes(
|
||||||
hass,
|
hass,
|
||||||
entity_registry,
|
entity_registry,
|
||||||
model,
|
|
||||||
unique_id=f"{unique_id_base}_input.voltage",
|
unique_id=f"{unique_id_base}_input.voltage",
|
||||||
device_id="sensor.ups1_input_voltage",
|
device_id="sensor.ups1_input_voltage",
|
||||||
state_value="122.91",
|
state_value="122.91",
|
||||||
@ -140,7 +139,6 @@ async def test_pdu_devices_with_unique_ids(
|
|||||||
_test_sensor_and_attributes(
|
_test_sensor_and_attributes(
|
||||||
hass,
|
hass,
|
||||||
entity_registry,
|
entity_registry,
|
||||||
model,
|
|
||||||
unique_id=f"{unique_id_base}_ambient.humidity.status",
|
unique_id=f"{unique_id_base}_ambient.humidity.status",
|
||||||
device_id="sensor.ups1_ambient_humidity_status",
|
device_id="sensor.ups1_ambient_humidity_status",
|
||||||
state_value="good",
|
state_value="good",
|
||||||
@ -153,7 +151,6 @@ async def test_pdu_devices_with_unique_ids(
|
|||||||
_test_sensor_and_attributes(
|
_test_sensor_and_attributes(
|
||||||
hass,
|
hass,
|
||||||
entity_registry,
|
entity_registry,
|
||||||
model,
|
|
||||||
unique_id=f"{unique_id_base}_ambient.temperature.status",
|
unique_id=f"{unique_id_base}_ambient.temperature.status",
|
||||||
device_id="sensor.ups1_ambient_temperature_status",
|
device_id="sensor.ups1_ambient_temperature_status",
|
||||||
state_value="good",
|
state_value="good",
|
||||||
@ -334,7 +331,6 @@ async def test_pdu_dynamic_outlets(
|
|||||||
_test_sensor_and_attributes(
|
_test_sensor_and_attributes(
|
||||||
hass,
|
hass,
|
||||||
entity_registry,
|
entity_registry,
|
||||||
model,
|
|
||||||
unique_id=f"{unique_id_base}_outlet.1.current",
|
unique_id=f"{unique_id_base}_outlet.1.current",
|
||||||
device_id="sensor.ups1_outlet_a1_current",
|
device_id="sensor.ups1_outlet_a1_current",
|
||||||
state_value="0",
|
state_value="0",
|
||||||
@ -348,7 +344,6 @@ async def test_pdu_dynamic_outlets(
|
|||||||
_test_sensor_and_attributes(
|
_test_sensor_and_attributes(
|
||||||
hass,
|
hass,
|
||||||
entity_registry,
|
entity_registry,
|
||||||
model,
|
|
||||||
unique_id=f"{unique_id_base}_outlet.24.current",
|
unique_id=f"{unique_id_base}_outlet.24.current",
|
||||||
device_id="sensor.ups1_outlet_a24_current",
|
device_id="sensor.ups1_outlet_a24_current",
|
||||||
state_value="0.19",
|
state_value="0.19",
|
||||||
|
@ -104,7 +104,6 @@ async def async_init_integration(
|
|||||||
def _test_sensor_and_attributes(
|
def _test_sensor_and_attributes(
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
entity_registry: er.EntityRegistry,
|
entity_registry: er.EntityRegistry,
|
||||||
model: str,
|
|
||||||
unique_id: str,
|
unique_id: str,
|
||||||
device_id: str,
|
device_id: str,
|
||||||
state_value: str,
|
state_value: str,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user