Skip to content

Commit

Permalink
Remove Download/Upload sensors
Browse files Browse the repository at this point in the history
  • Loading branch information
Omar Raad committed Jun 25, 2024
1 parent 770f6be commit 97a5520
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
8 changes: 4 additions & 4 deletions custom_components/ogero/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class StateAttribute(TypedDict):

class Data(TypedDict):
quota: int
download: float
upload: float
# download: float
# upload: float
last_update: datetime
speed: str
total_consumption: float
Expand Down Expand Up @@ -85,8 +85,8 @@ async def _get_account_info(self):

data: Data = {
"quota": consumption.quota,
"upload": consumption.upload,
"download": consumption.download,
# "upload": consumption.upload,
# "download": consumption.download,
"last_update": consumption.last_update,
"speed": consumption.speed,
"total_consumption": consumption.total_consumption,
Expand Down
2 changes: 1 addition & 1 deletion custom_components/ogero/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"requirements": [
"pyogero==0.10.1"
],
"version": "0.4.5"
"version": "0.4.6"
}
32 changes: 16 additions & 16 deletions custom_components/ogero/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
from .entity import OgeroEntity

SPEED = "speed"
UPLOAD = "upload"
DOWNLOAD = "download"
# UPLOAD = "upload"
# DOWNLOAD = "download"
TOTAL_CONSUMPTION = "total_consumption"
EXTRA_CONSUMPTION = "extra_consumption"
QUOTA = "quota"
Expand All @@ -38,20 +38,20 @@
translation_key=SPEED,
icon="mdi:speedometer",
),
SensorEntityDescription(
key=DOWNLOAD,
translation_key=DOWNLOAD,
native_unit_of_measurement="GB",
suggested_display_precision=1,
icon="mdi:download",
),
SensorEntityDescription(
key=UPLOAD,
translation_key=UPLOAD,
native_unit_of_measurement="GB",
suggested_display_precision=1,
icon="mdi:upload",
),
# SensorEntityDescription(
# key=DOWNLOAD,
# translation_key=DOWNLOAD,
# native_unit_of_measurement="GB",
# suggested_display_precision=1,
# icon="mdi:download",
# ),
# SensorEntityDescription(
# key=UPLOAD,
# translation_key=UPLOAD,
# native_unit_of_measurement="GB",
# suggested_display_precision=1,
# icon="mdi:upload",
# ),
SensorEntityDescription(
key=TOTAL_CONSUMPTION,
translation_key=TOTAL_CONSUMPTION,
Expand Down

0 comments on commit 97a5520

Please sign in to comment.