diff --git a/custom_components/prusa_mini/__init__.py b/custom_components/prusa_mini/__init__.py index 4851850..a3fc4a8 100644 --- a/custom_components/prusa_mini/__init__.py +++ b/custom_components/prusa_mini/__init__.py @@ -109,4 +109,5 @@ def device_info(self): "identifiers": {(DOMAIN, self._entity_id)}, "name": self._name, "manufacturer": "Prusa", + "model": "MINI", } \ No newline at end of file diff --git a/custom_components/prusa_mini/config_flow.py b/custom_components/prusa_mini/config_flow.py index 0899d28..bb97b30 100644 --- a/custom_components/prusa_mini/config_flow.py +++ b/custom_components/prusa_mini/config_flow.py @@ -1,6 +1,6 @@ """Config flow to configure the Prusa Mini integration.""" -from .const import DOMAIN +from .const import DOMAIN # pylint: disable=unused-import from homeassistant import config_entries from homeassistant.const import CONF_IP_ADDRESS import ipaddress @@ -36,8 +36,9 @@ async def async_step_user(self, user_input=None): await self.async_set_unique_id(ip_address) self._abort_if_unique_id_configured() + title = f"Prusa Mini {ip_address}" return self.async_create_entry( - title="Prusa Mini", + title=title, data={CONF_IP_ADDRESS: ip_address}, ) diff --git a/custom_components/prusa_mini/sensor.py b/custom_components/prusa_mini/sensor.py index 093f49f..d540161 100644 --- a/custom_components/prusa_mini/sensor.py +++ b/custom_components/prusa_mini/sensor.py @@ -42,7 +42,7 @@ def __init__(self, coordinator, name, sensor_name, entity_id): @property def name(self): """Return the name of the sensor.""" - return f"{self._name} {self._condition_name}" + return self._condition_name @property def icon(self):