Skip to content

Commit

Permalink
2024.1.0b1
Browse files Browse the repository at this point in the history
  • Loading branch information
pantherale0 committed Jan 5, 2024
1 parent cb614e9 commit c77fcc9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions custom_components/fuel_prices/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ async def handle_fuel_location_lookup(call: ServiceCall) -> ServiceResponse:
)
locations_built = []
for loc in locations:
await loc.dynamic_build_fuels()
locations_built.append(loc.__dict__())

return {"items": locations_built, "sources": entry.data.get("sources", [])}
Expand Down
1 change: 1 addition & 0 deletions custom_components/fuel_prices/device_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ def state_attributes(self) -> dict[str, StateType]:
attr: dict[str, StateType] = {
ATTR_SOURCE_TYPE: self.source_type,
**self._get_fuels,
**self._fuel_station.__dict__(),
}
if self.latitude is not None and self.longitude is not None:
attr[ATTR_LATITUDE] = self.latitude
Expand Down
2 changes: 1 addition & 1 deletion custom_components/fuel_prices/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/pantherale0/ha-fuelprices/issues",
"requirements": [
"pyfuelprices==2.1.0",
"pyfuelprices==2.1.1",
"geopy",
"these-united-states",
"reverse-geocode",
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ colorlog==6.7.0
homeassistant==2023.8.0
pip>=21.0,<23.2
ruff==0.0.292
pyfuelprices==2.1.0
pyfuelprices==2.1.1
geopy==2.4.0
these-united-states>=1.1
reverse-geocode==1.4.1
Expand Down

0 comments on commit c77fcc9

Please sign in to comment.