Skip to content

Commit

Permalink
add ip address to discover card
Browse files Browse the repository at this point in the history
  • Loading branch information
LoSk-p committed Feb 12, 2025
1 parent 89d5713 commit 2d85335
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/altruist/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ async def async_step_zeroconf(
_LOGGER.info("Zeroconf device: %s", self.device)
await self.async_set_unique_id(self.device.id)
self._abort_if_unique_id_configured()
self.context.update({"title_placeholders": {"name": "Altruist", "ip_address": self.device.ip_address}})
return await self.async_step_discovery_confirm()

async def async_step_discovery_confirm(
Expand Down
1 change: 1 addition & 0 deletions custom_components/altruist/strings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"config": {
"flow_title": "{name} {ip_address}",
"step": {
"discovery_confirm": {
"description": "Do you want to start setup {model}?"
Expand Down
1 change: 1 addition & 0 deletions custom_components/altruist/translations/en.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"config": {
"flow_title": "{name} {ip_address}",
"abort": {
"invalid_ip": "Invalid IP address",
"no_devices_found": "No devices found on the network",
Expand Down

0 comments on commit 2d85335

Please sign in to comment.