Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Remove version from device #70

Merged
merged 1 commit into from
Nov 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions custom_components/carbu_com/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
CONF_USERNAME
)

from . import DOMAIN, NAME, VERSION
from . import DOMAIN, NAME

_LOGGER = logging.getLogger(__name__)
_DATETIME_FORMAT = "%Y-%m-%dT%H:%M:%S.0%z"
Expand Down Expand Up @@ -613,7 +613,6 @@ def device_info(self) -> DeviceInfo:
},
name=f"{NAME} {self._data._postalcode} {self._data._country}",
model=f"{self._data._postalcode} {self._data._country}",
sw_version= f"{VERSION}",
manufacturer= NAME
)
@property
Expand Down Expand Up @@ -767,7 +766,6 @@ def device_info(self) -> DeviceInfo:
},
name=f"{NAME} {self._data._postalcode} {self._data._country}",
model=f"{self._data._postalcode} {self._data._country}",
sw_version= f"{VERSION}",
manufacturer= NAME
)

Expand Down Expand Up @@ -868,7 +866,6 @@ def device_info(self) -> DeviceInfo:
},
name=f"{NAME} {self._data._postalcode} {self._data._country}",
model=f"{self._data._postalcode} {self._data._country}",
sw_version= f"{VERSION}",
manufacturer= NAME
)

Expand Down Expand Up @@ -1013,7 +1010,6 @@ def device_info(self) -> DeviceInfo:
},
name=f"{NAME} {self._data._postalcode} {self._data._country}",
model=f"{self._data._postalcode} {self._data._country}",
sw_version= f"{VERSION}",
manufacturer= NAME
)

Expand Down Expand Up @@ -1136,7 +1132,6 @@ def device_info(self) -> DeviceInfo:
},
name=f"{NAME} {self._data._postalcode} {self._data._country}",
model=f"{self._data._postalcode} {self._data._country}",
sw_version= f"{VERSION}",
manufacturer= NAME
)

Expand All @@ -1156,4 +1151,4 @@ def device_class(self):


def friendly_name_template(template, attributes):
return template.format(**attributes)
return template.format(**attributes)
Loading