Rename various usages of UniFi to better identify only UniFi Network (#59568)
* Renames various usages of UniFi to better indentify only UniFi Network * Apply suggestions from code review Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com> * Missed renames * Updates more locations * Removes instances of application/controller * Missed a spot * Updates all UniFi Controller instances * Fixes typo * Reverts changes to translations Co-authored-by: Robert Svensson <Kane610@users.noreply.github.com>
This commit is contained in:
parent
296b738740
commit
5a72c9f7c3
21 changed files with 75 additions and 67 deletions
|
@ -1,4 +1,4 @@
|
|||
"""Sensor platform for UniFi integration.
|
||||
"""Sensor platform for UniFi Network integration.
|
||||
|
||||
Support for bandwidth sensors of network clients.
|
||||
Support for uptime sensors of network clients.
|
||||
|
@ -21,7 +21,7 @@ UPTIME_SENSOR = "uptime"
|
|||
|
||||
|
||||
async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||
"""Set up sensors for UniFi integration."""
|
||||
"""Set up sensors for UniFi Network integration."""
|
||||
controller = hass.data[UNIFI_DOMAIN][config_entry.entry_id]
|
||||
controller.entities[DOMAIN] = {
|
||||
RX_SENSOR: set(),
|
||||
|
@ -82,7 +82,7 @@ def add_uptime_entities(controller, async_add_entities, clients):
|
|||
|
||||
|
||||
class UniFiBandwidthSensor(UniFiClient, SensorEntity):
|
||||
"""UniFi bandwidth sensor base class."""
|
||||
"""UniFi Network bandwidth sensor base class."""
|
||||
|
||||
DOMAIN = DOMAIN
|
||||
|
||||
|
@ -127,7 +127,7 @@ class UniFiTxBandwidthSensor(UniFiBandwidthSensor):
|
|||
|
||||
|
||||
class UniFiUpTimeSensor(UniFiClient, SensorEntity):
|
||||
"""UniFi uptime sensor."""
|
||||
"""UniFi Network client uptime sensor."""
|
||||
|
||||
DOMAIN = DOMAIN
|
||||
TYPE = UPTIME_SENSOR
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue