Skip to content

Commit

Permalink
Merge pull request #136 from elad-bar/re-add-interface-status
Browse files Browse the repository at this point in the history
Re-add interface status (Binary Sensor and Switch) #135
  • Loading branch information
elad-bar authored May 4, 2024
2 parents c3be8e1 + 232b19a commit 343363c
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 2.1.2

- Re-add interface status (Binary Sensor and Switch) [#135](https://github.com/elad-bar/ha-edgeos/issues/135)

## 2.1.1

- Fix interface received rate sensor [#133](https://github.com/elad-bar/ha-edgeos/issues/133)
Expand Down
9 changes: 8 additions & 1 deletion custom_components/edgeos/common/entity_descriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,15 @@ class IntegrationNumberEntityDescription(
icon="mdi:monitor-eye",
device_type=DeviceTypes.INTERFACE,
),
IntegrationBinarySensorEntityDescription(
key=EntityKeys.INTERFACE_STATUS,
icon="mdi:monitor-eye",
device_type=DeviceTypes.INTERFACE,
),
IntegrationSwitchEntityDescription(
key=EntityKeys.INTERFACE_STATUS, icon="mdi:monitor-eye"
key=EntityKeys.INTERFACE_STATUS,
icon="mdi:monitor-eye",
device_type=DeviceTypes.INTERFACE,
),
IntegrationSensorEntityDescription(
key=EntityKeys.DEVICE_RECEIVED_RATE,
Expand Down
2 changes: 1 addition & 1 deletion custom_components/edgeos/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"iot_class": "local_polling",
"issue_tracker": "https://github.com/elad-bar/ha-edgeos/issues",
"requirements": ["aiohttp"],
"version": "2.1.1"
"version": "2.1.2"
}
3 changes: 3 additions & 0 deletions custom_components/edgeos/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@
},
"interface_connected": {
"name": "Connected"
},
"interface_status": {
"name": "Status"
}
},
"device_tracker": {
Expand Down
3 changes: 3 additions & 0 deletions custom_components/edgeos/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
},
"interface_connected": {
"name": "Connected"
},
"interface_status": {
"name": "Status"
}
},
"device_tracker": {
Expand Down
3 changes: 3 additions & 0 deletions custom_components/edgeos/translations/nb.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
},
"interface_connected": {
"name": "Tilkoblet"
},
"interface_status": {
"name": "Status"
}
},
"device_tracker": {
Expand Down
3 changes: 3 additions & 0 deletions custom_components/edgeos/translations/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
},
"interface_connected": {
"name": "Conectada Conectado"
},
"interface_status": {
"name": "Status"
}
},
"device_tracker": {
Expand Down

0 comments on commit 343363c

Please sign in to comment.