Remove unreachable code in data_entry_flow.py (#58193)

- bc1daf1802d2ef3ec6afe64882eb21ecf28baa49 removed the need for this
  guard
This commit is contained in:
J. Nick Koston 2021-10-21 13:45:16 -10:00 committed by GitHub
parent cc4241836e
commit 7cc924e83c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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