Skip to content

Commit

Permalink
Prepare version 0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
vrnagy committed Sep 30, 2020
1 parent 4ba4553 commit 1fe89c8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions custom_components/prusa_mini/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,5 @@ def device_info(self):
"identifiers": {(DOMAIN, self._entity_id)},
"name": self._name,
"manufacturer": "Prusa",
"model": "MINI",
}
5 changes: 3 additions & 2 deletions custom_components/prusa_mini/config_flow.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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},
)

Expand Down
2 changes: 1 addition & 1 deletion custom_components/prusa_mini/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 1fe89c8

Please sign in to comment.