Skip to content

Commit

Permalink
Add volume information to sensor attributes
Browse files Browse the repository at this point in the history
Add volume information to sensor attributes.
  • Loading branch information
dougiteixeira committed May 10, 2023
1 parent bd67063 commit 99e0f02
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/drivvo/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/hudsonbrendon/sensor.drivvo/issues",
"requirements": [],
"version": "1.0.6"
"version": "1.0.7"
}
2 changes: 2 additions & 0 deletions custom_components/drivvo/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ def extra_state_attributes(self):
"encheu_o_tanque": self.data.refuelling_tank_full,
"km_percorridos_desde_o_ultimo_abastecimento": self.data.refuelling_distance,
"gasolina_mais_barata_ate_entao": self.data.refuelling_price_lowest,
"refuelling_volume": self.data.refuelling_volume,
"refuelling_volume_total": self.data.refuelling_volume_total,
}

async def async_update(self):
Expand Down
6 changes: 6 additions & 0 deletions custom_components/drivvo/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@
},
"gasolina_mais_barata_ate_entao": {
"name": "Cheaper fuel"
},
"refuelling_volume": {
"name": "Last refueling volume"
},
"refuelling_volume_total": {
"name": "Total volume refuelings"
}
}
}
Expand Down
6 changes: 6 additions & 0 deletions custom_components/drivvo/translations/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@
},
"gasolina_mais_barata_ate_entao": {
"name": "Combustível mais barato"
},
"refuelling_volume": {
"name": "Volume do último abastecimento"
},
"refuelling_volume_total": {
"name": "Volume total dos abastecimentos"
}
}
}
Expand Down

0 comments on commit 99e0f02

Please sign in to comment.