Skip to content

Commit

Permalink
some small ui updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mampfes committed Sep 17, 2023
1 parent 5d195e2 commit 6de0f50
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion custom_components/bayernluefter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def __init__(
configuration_url=f"http://{device.raw()['LocalIP']}",
identifiers={(DOMAIN, format_mac(device.raw()["MAC"]))},
name=device.raw()["DeviceName"],
manufacturer="Bayernluft",
manufacturer="BAVARIAVENT UG (haftungsbeschränkt) & Co. KG",
model="Bayernlüfter",
sw_version=f"{device.raw()['FW_MainController']} / {device.raw()['FW_WiFi']}", # noqa: E501
)
Expand Down
2 changes: 1 addition & 1 deletion custom_components/bayernluefter/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async def async_step_user(self, user_input=None):
# user_input[CONF_MODEL] = avr.protocol.model
await self.async_set_unique_id(user_input[CONF_MAC])
self._abort_if_unique_id_configured()
return self.async_create_entry(title=user_input[CONF_HOST], data=user_input)
return self.async_create_entry(title=f"{device.raw_converted()['DeviceName']} @ {user_input[CONF_HOST]}", data=user_input)

return self.async_show_form(
step_id="user", data_schema=STEP_USER_DATA_SCHEMA, errors=errors
Expand Down
2 changes: 1 addition & 1 deletion custom_components/bayernluefter/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"integration_type": "device",
"iot_class": "local_polling",
"issue_tracker": "https://github.com/mampfes/ha_bayernluefter/issues",
"requirements": ["pyernluefter==0.0.3"],
"requirements": ["pyernluefter==0.1.1"],
"version": "1.0.0"
}
5 changes: 5 additions & 0 deletions custom_components/bayernluefter/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@
name="MAC",
entity_category=EntityCategory.DIAGNOSTIC,
),
SensorEntityDescription(
key="LocalIP",
name="IP",
entity_category=EntityCategory.DIAGNOSTIC,
),
SensorEntityDescription(
key="SystemMode",
name="SystemMode",
Expand Down

0 comments on commit 6de0f50

Please sign in to comment.