diff --git a/homeassistant/components/goodwe/number.py b/homeassistant/components/goodwe/number.py index f8d3979879f..b8196b05252 100644 --- a/homeassistant/components/goodwe/number.py +++ b/homeassistant/components/goodwe/number.py @@ -128,7 +128,6 @@ class InverterNumberEntity(NumberEntity): async def async_set_native_value(self, value: float) -> None: """Set new value.""" - if self.entity_description.setter: - await self.entity_description.setter(self._inverter, int(value)) + await self.entity_description.setter(self._inverter, int(value)) self._attr_native_value = value self.async_write_ha_state() diff --git a/homeassistant/components/kostal_plenticore/sensor.py b/homeassistant/components/kostal_plenticore/sensor.py index 6555a35c8bc..29b42e88b50 100644 --- a/homeassistant/components/kostal_plenticore/sensor.py +++ b/homeassistant/components/kostal_plenticore/sensor.py @@ -797,4 +797,4 @@ class PlenticoreDataSensor(CoordinatorEntity, SensorEntity): raw_value = self.coordinator.data[self.module_id][self.data_id] - return self._formatter(raw_value) if self._formatter else raw_value + return self._formatter(raw_value) diff --git a/homeassistant/helpers/schema_config_entry_flow.py b/homeassistant/helpers/schema_config_entry_flow.py index 12ffa7cc101..413161eb150 100644 --- a/homeassistant/helpers/schema_config_entry_flow.py +++ b/homeassistant/helpers/schema_config_entry_flow.py @@ -134,7 +134,7 @@ class SchemaCommonFlowHandler: self._options.update(user_input) next_step_id: str = step_id - if form_step.next_step and (user_input is not None or form_step.schema is None): + if user_input is not None or form_step.schema is None: # Get next step next_step_id_or_end_flow = form_step.next_step(self._options) if next_step_id_or_end_flow is None: