diff --git a/custom_components/drivvo/manifest.json b/custom_components/drivvo/manifest.json index b345107..b6f0555 100644 --- a/custom_components/drivvo/manifest.json +++ b/custom_components/drivvo/manifest.json @@ -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" } \ No newline at end of file diff --git a/custom_components/drivvo/sensor.py b/custom_components/drivvo/sensor.py index b4e5fe4..715d42f 100755 --- a/custom_components/drivvo/sensor.py +++ b/custom_components/drivvo/sensor.py @@ -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): diff --git a/custom_components/drivvo/translations/en.json b/custom_components/drivvo/translations/en.json index ebff27f..b0d3fc9 100644 --- a/custom_components/drivvo/translations/en.json +++ b/custom_components/drivvo/translations/en.json @@ -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" } } } diff --git a/custom_components/drivvo/translations/pt-BR.json b/custom_components/drivvo/translations/pt-BR.json index 12caf25..4833374 100644 --- a/custom_components/drivvo/translations/pt-BR.json +++ b/custom_components/drivvo/translations/pt-BR.json @@ -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" } } }