Пример #1
0
 def update(self):
     """Get the latest state of the sensor."""
     self._attr_state = get_balance(self.addresses)
Пример #2
0
 def update(self):
     """Get the latest state of the sensor."""
     from pyblockchain import get_balance
     self._state = get_balance(self.addresses)
Пример #3
0
 def update(self) -> None:
     """Get the latest state of the sensor."""
     self._attr_native_value = get_balance(self.addresses)
Пример #4
0
 def update(self):
     """Get the latest state of the sensor."""
     from pyblockchain import get_balance
     self._state = get_balance(self.addresses)