Ejemplo n.º 1
0
    def update(self):
        """Get the latest state of the sensor."""
        from pyripple import get_balance

        balance = get_balance(self.address)
        if balance is not None:
            self._state = balance
Ejemplo n.º 2
0
    def update(self):
        """Get the latest state of the sensor."""

        balance = get_balance(self.address)
        if balance is not None:
            self._state = balance
Ejemplo n.º 3
0
 def update(self):
     """Get the latest state of the sensor."""
     from pyripple import get_balance
     balance = get_balance(self.address)
     if balance is not None:
         self._state = balance
Ejemplo n.º 4
0
 def update(self):
     """Get the latest state of the sensor."""
     if (balance := get_balance(self.address)) is not None:
         self._state = balance