Skip to content

Commit

Permalink
(chore) linting
Browse files Browse the repository at this point in the history
  • Loading branch information
agittins committed Oct 12, 2023
1 parent 482448a commit e129345
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions custom_components/bermuda/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,15 @@ async def async_step_globalopts(self, user_input=None):

options = []
for service_info in bluetooth.async_discovered_service_info(self.hass, False):
devname = (
service_info.name
or service_info.advertisement.local_name
or service_info.device.name
)
options.append(
{
"value": service_info.address.upper(),
"label": (
f"[{service_info.address}]"
f"{service_info.name or service_info.advertisement.local_name or service_info.device.name}"
),
"label": f"[{service_info.address}] {devname}",
}
)

Expand Down

0 comments on commit e129345

Please sign in to comment.