File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
custom_components/thw_stein Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 99
1010Displays vehicle and asset status from ** Stein.APP** directly in Home Assistant.
1111
12- ** Version 0.3.1b ** – 2025-07-04
12+ ** Version 0.3.3b ** – 2025-07-04
1313
1414---
1515
Original file line number Diff line number Diff line change 11{
22 "domain" : " thw_stein" ,
33 "name" : " THW Stein" ,
4- "version" : " 0.3.1b " ,
4+ "version" : " 0.3.3b " ,
55 "documentation" : " https://github.com/Lexorius/HomeAssistant-THW-Stein.app-API" ,
66 "issue_tracker" : " https://github.com/Lexorius/HomeAssistant-THW-Stein.app-API/issues" ,
77 "requirements" : [
Original file line number Diff line number Diff line change @@ -53,8 +53,11 @@ def _compose_name(asset) -> str:
5353 return " " .join (filter (None , parts ))
5454
5555 def _update_from_asset (self , asset ):
56- self ._attr_unique_id = f"stein_{ self ._asset_id } "
57- self ._attr_name = self ._compose_name (asset )
56+ slug = self ._compose_name (asset ).lower ().replace (" " , "_" ).replace ("/" , "_" )
57+ self ._attr_unique_id = f"stein_app_{ self ._asset_id } "
58+ self ._attr_name = f"stein_app_{ slug } "
59+ #self._attr_unique_id = f"stein_{self._asset_id}"
60+ #self._attr_name = self._compose_name(asset)
5861 raw_status = asset .get ("status" )
5962 raw_einsatzvorbehalt = asset .get ("operationReservation" )
6063 self ._attr_native_value = STATUS_MAP .get (raw_status )
You can’t perform that action at this time.
0 commit comments