mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +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
|
@property
|
||||||
def source(self) -> str | None:
|
def source(self) -> str | None:
|
||||||
"""Source that initialized the flow."""
|
"""Source that initialized the flow."""
|
||||||
if not hasattr(self, "context"):
|
|
||||||
return None
|
|
||||||
|
|
||||||
return self.context.get("source", None)
|
return self.context.get("source", None)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def show_advanced_options(self) -> bool:
|
def show_advanced_options(self) -> bool:
|
||||||
"""If we should show advanced options."""
|
"""If we should show advanced options."""
|
||||||
if not hasattr(self, "context"):
|
|
||||||
return False
|
|
||||||
|
|
||||||
return self.context.get("show_advanced_options", False)
|
return self.context.get("show_advanced_options", False)
|
||||||
|
|
||||||
@callback
|
@callback
|
||||||
|
Loading…
x
Reference in New Issue
Block a user