From 7cc924e83c3d6c890edf4a00327006f95549ca65 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 21 Oct 2021 13:45:16 -1000 Subject: [PATCH] Remove unreachable code in data_entry_flow.py (#58193) - bc1daf1802d2ef3ec6afe64882eb21ecf28baa49 removed the need for this guard --- homeassistant/data_entry_flow.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/homeassistant/data_entry_flow.py b/homeassistant/data_entry_flow.py index 791fd9d21c5..c82ec3acfd7 100644 --- a/homeassistant/data_entry_flow.py +++ b/homeassistant/data_entry_flow.py @@ -341,17 +341,11 @@ class FlowHandler: @property def source(self) -> str | None: """Source that initialized the flow.""" - if not hasattr(self, "context"): - return None - return self.context.get("source", None) @property def show_advanced_options(self) -> bool: """If we should show advanced options.""" - if not hasattr(self, "context"): - return False - return self.context.get("show_advanced_options", False) @callback