示例#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
文件: sensor.py 项目: jbouwh/core
 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)