From 73e331465d998f09b4da10bc19efec5c245e394f Mon Sep 17 00:00:00 2001 From: Chistopher Kochan <5183896+crkochan@users.noreply.github.com> Date: Mon, 6 Sep 2021 00:30:02 -0700 Subject: [PATCH] Revert some VS Code line breakage. --- custom_components/sunpower/binary_sensor.py | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/custom_components/sunpower/binary_sensor.py b/custom_components/sunpower/binary_sensor.py index b42002c..bb795d9 100644 --- a/custom_components/sunpower/binary_sensor.py +++ b/custom_components/sunpower/binary_sensor.py @@ -41,17 +41,13 @@ async def async_setup_entry(hass, config_entry, async_add_entities): _LOGGER.error("Cannot find any power meters") else: for data in sunpower_data[METER_DEVICE_TYPE].values(): - entities.append( - SunPowerMeterState(coordinator, data, pvs, do_descriptive_names) - ) + entities.append(SunPowerMeterState(coordinator, data, pvs, do_descriptive_names)) if INVERTER_DEVICE_TYPE not in sunpower_data: _LOGGER.error("Cannot find any power inverters") else: for data in sunpower_data[INVERTER_DEVICE_TYPE].values(): - entities.append( - SunPowerInverterState(coordinator, data, pvs, do_descriptive_names) - ) + entities.append(SunPowerInverterState(coordinator, data, pvs, do_descriptive_names)) async_add_entities(entities, True) @@ -120,9 +116,7 @@ def unique_id(self): @property def state(self): """Get the current value""" - return self.coordinator.data[METER_DEVICE_TYPE][self.base_unique_id][ - METER_STATE - ] + return self.coordinator.data[METER_DEVICE_TYPE][self.base_unique_id][METER_STATE] @property def is_on(self): @@ -158,9 +152,7 @@ def unique_id(self): @property def state(self): """Get the current value""" - return self.coordinator.data[INVERTER_DEVICE_TYPE][self.base_unique_id][ - INVERTER_STATE - ] + return self.coordinator.data[INVERTER_DEVICE_TYPE][self.base_unique_id][INVERTER_STATE] @property def is_on(self):