Typos
authorBenjamin Braatz <benjamin.braatz@graph-it.com>
Tue, 12 Jan 2021 08:15:29 +0000 (09:15 +0100)
committerBenjamin Braatz <benjamin.braatz@graph-it.com>
Tue, 12 Jan 2021 08:15:29 +0000 (09:15 +0100)
graphit_pin/gpio.py
graphit_pin/pcf8574.py

index 343883b6225a4a8173b61b56df7e3730e8bc4cf3..b14baddacd004607b9c8b56adcfeecc38ec0c1c5 100644 (file)
@@ -17,7 +17,7 @@ class GPIOInputPin(PinInterface, graphit_event.EventEmitterMixin):
         def _onLoopChange(value: bool):
             if self._value != value:
                 self._value = value
-                self._emit('change', self.__value)
+                self._emit('change', self._value)
 
         loop = asyncio.get_running_loop()
 
index 41fcfd96ab21f8f80f090e1d76f75b9d70cd82b2..aa8497f1515978d630ec100855a267adb43208c7 100644 (file)
@@ -102,9 +102,6 @@ class PCF8574Output(graphit_event.EventEmitterMixin):
         assert pin >= 0 and pin <= 7, 'pin must be >= 0 and <= 7'
         return not bool(self._values & (1 << pin))
 
-    def getValues(self) -> int:
-        return (~self.__values & 0xFF)
-
     def setValue(self, pin: int, value: bool) -> None:
         assert isinstance(pin, int), 'pin must be an integer'
         assert pin >= 0 and pin <= 7, 'pin must be >= 0 and <= 7'