diff --git a/homeassistant/components/homeassistant_sky_connect/config_flow.py b/homeassistant/components/homeassistant_sky_connect/config_flow.py index eb5ea214b3e..9b18c376a39 100644 --- a/homeassistant/components/homeassistant_sky_connect/config_flow.py +++ b/homeassistant/components/homeassistant_sky_connect/config_flow.py @@ -215,17 +215,17 @@ class HomeAssistantSkyConnectOptionsFlowHandler( """Instantiate options flow.""" super().__init__(*args, **kwargs) - self._usb_info = get_usb_service_info(self.config_entry) + self._usb_info = get_usb_service_info(self._config_entry) self._hw_variant = HardwareVariant.from_usb_product_name( - self.config_entry.data[PRODUCT] + self._config_entry.data[PRODUCT] ) self._hardware_name = self._hw_variant.full_name self._device = self._usb_info.device self._probed_firmware_info = FirmwareInfo( device=self._device, - firmware_type=ApplicationType(self.config_entry.data[FIRMWARE]), - firmware_version=self.config_entry.data[FIRMWARE_VERSION], + firmware_type=ApplicationType(self._config_entry.data[FIRMWARE]), + firmware_version=self._config_entry.data[FIRMWARE_VERSION], source="guess", owners=[], ) diff --git a/homeassistant/components/homeassistant_yellow/config_flow.py b/homeassistant/components/homeassistant_yellow/config_flow.py index 1fac6bcac96..721c0ccdac5 100644 --- a/homeassistant/components/homeassistant_yellow/config_flow.py +++ b/homeassistant/components/homeassistant_yellow/config_flow.py @@ -288,7 +288,7 @@ class HomeAssistantYellowOptionsFlowHandler( self._probed_firmware_info = FirmwareInfo( device=self._device, - firmware_type=ApplicationType(self.config_entry.data["firmware"]), + firmware_type=ApplicationType(self._config_entry.data["firmware"]), firmware_version=None, source="guess", owners=[], diff --git a/tests/components/homeassistant_hardware/test_config_flow.py b/tests/components/homeassistant_hardware/test_config_flow.py index 2d5067bea3e..90cc9bd4633 100644 --- a/tests/components/homeassistant_hardware/test_config_flow.py +++ b/tests/components/homeassistant_hardware/test_config_flow.py @@ -85,12 +85,12 @@ class FakeFirmwareOptionsFlowHandler(BaseFirmwareOptionsFlow): """Instantiate options flow.""" super().__init__(*args, **kwargs) - self._device = self.config_entry.data["device"] - self._hardware_name = self.config_entry.data["hardware"] + self._device = self._config_entry.data["device"] + self._hardware_name = self._config_entry.data["hardware"] self._probed_firmware_info = FirmwareInfo( device=self._device, - firmware_type=ApplicationType(self.config_entry.data["firmware"]), + firmware_type=ApplicationType(self._config_entry.data["firmware"]), firmware_version=None, source="guess", owners=[],