Spell Zigbee consistently, with lowercase "b" (#30440)

https://zigbeealliance.org/developer_resources/zigbee-specification/
"Please note that this uses old branding, Zigbee is always a lowercase
 B, not a capital. This change occurred shortly after the official
 release of this document."

Also other docs at https://zigbeealliance.org/solution_type/zigbee/,
https://github.com/zigpy/zigpy/issues/111
This commit is contained in:
Ville Skyttä authored and Charles Garwood committed 2020-01-06 08:32:10 -05:00
1 parent 0d1da9f5cb
commit 80cbc32c49
4 files changed
+21 -21

No files matched your search

+9 -9
View File
@@ -325,7 +325,7 @@ class ZigBeeDigitalIn(Entity):
except ZIGBEE_TX_FAILURE:
_LOGGER.warning(
"Transmission failure when attempting to get sample from "
"ZigBee device at address: %s",
"Zigbee device at address: %s",
hexlify(self._config.address),
)
return
@@ -348,7 +348,7 @@ class ZigBeeDigitalOut(ZigBeeDigitalIn):
"""Representation of a GPIO pin configured as a digital input."""
def _set_state(self, state):
"""Initialize the ZigBee digital out device."""
"""Initialize the Zigbee digital out device."""
try:
DEVICE.set_gpio_pin(
self._config.pin, self._config.bool2state[state], self._config.address
@@ -356,12 +356,12 @@ class ZigBeeDigitalOut(ZigBeeDigitalIn):
except ZIGBEE_TX_FAILURE:
_LOGGER.warning(
"Transmission failure when attempting to set output pin on "
"ZigBee device at address: %s",
"Zigbee device at address: %s",
hexlify(self._config.address),
)
return
except ZIGBEE_EXCEPTION as exc:
_LOGGER.exception("Unable to set digital pin on ZigBee device: %s", exc)
_LOGGER.exception("Unable to set digital pin on Zigbee device: %s", exc)
return
self._state = state
if not self.should_poll:
@@ -376,19 +376,19 @@ class ZigBeeDigitalOut(ZigBeeDigitalIn):
self._set_state(False)
def update(self):
"""Ask the ZigBee device what its output is set to."""
"""Ask the Zigbee device what its output is set to."""
try:
pin_state = DEVICE.get_gpio_pin(self._config.pin, self._config.address)
except ZIGBEE_TX_FAILURE:
_LOGGER.warning(
"Transmission failure when attempting to get output pin status"
" from ZigBee device at address: %s",
" from Zigbee device at address: %s",
hexlify(self._config.address),
)
return
except ZIGBEE_EXCEPTION as exc:
_LOGGER.exception(
"Unable to get output pin status from ZigBee device: %s", exc
"Unable to get output pin status from Zigbee device: %s", exc
)
return
self._state = self._config.state2bool[pin_state]
@@ -462,8 +462,8 @@ class ZigBeeAnalogIn(Entity):
except ZIGBEE_TX_FAILURE:
_LOGGER.warning(
"Transmission failure when attempting to get sample from "
"ZigBee device at address: %s",
"Zigbee device at address: %s",
hexlify(self._config.address),
)
except ZIGBEE_EXCEPTION as exc:
_LOGGER.exception("Unable to get sample from ZigBee device: %s", exc)
_LOGGER.exception("Unable to get sample from Zigbee device: %s", exc)
+5 -5
View File
@@ -27,9 +27,9 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
def setup_platform(hass, config, add_entities, discovery_info=None):
"""Set up the ZigBee platform.
"""Set up the Zigbee platform.
Uses the 'type' config value to work out which type of ZigBee sensor we're
Uses the 'type' config value to work out which type of Zigbee sensor we're
dealing with and instantiates the relevant classes to handle it.
"""
typ = config.get(CONF_TYPE)
@@ -37,7 +37,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
try:
sensor_class, config_class = TYPE_CLASSES[typ]
except KeyError:
_LOGGER.exception("Unknown ZigBee sensor type: %s", typ)
_LOGGER.exception("Unknown Zigbee sensor type: %s", typ)
return
add_entities([sensor_class(hass, config_class(config))], True)
@@ -73,11 +73,11 @@ class ZigBeeTemperatureSensor(Entity):
except zigbee.ZIGBEE_TX_FAILURE:
_LOGGER.warning(
"Transmission failure when attempting to get sample from "
"ZigBee device at address: %s",
"Zigbee device at address: %s",
hexlify(self._config.address),
)
except zigbee.ZIGBEE_EXCEPTION as exc:
_LOGGER.exception("Unable to get sample from ZigBee device: %s", exc)
_LOGGER.exception("Unable to get sample from Zigbee device: %s", exc)
# This must be below the classes to which it refers.