mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Remove unreachable code in data_entry_flow.py (#58193)
- bc1daf1802d2ef3ec6afe64882eb21ecf28baa49 removed the need for this guard
This commit is contained in:
parent
cc4241836e
commit
7cc924e83c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user