Remove unused code from Brother config flow (#49889)
This commit is contained in:
parent
fdc29d6a80
commit
39e8a92596
2 changed files with 0 additions and 22 deletions
|
@ -84,11 +84,6 @@ class BrotherConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
|||
self, discovery_info: DiscoveryInfoType
|
||||
) -> FlowResult:
|
||||
"""Handle zeroconf discovery."""
|
||||
if not discovery_info.get("name") or not discovery_info["name"].startswith(
|
||||
"Brother"
|
||||
):
|
||||
return self.async_abort(reason="not_brother_printer")
|
||||
|
||||
# Hostname is format: brother.local.
|
||||
self.host = discovery_info["hostname"].rstrip(".")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue