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:
1 parent
0d1da9f5cb
commit
80cbc32c49
4 files changed
+21
-21
No files matched your search
@@ -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)
|
||||
Reference in new issue
Block a user