File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[project ]
22name = " powersensor-local"
3- version = " 1.0.1 "
3+ version = " 1.0.2 "
44description = " Network-local (non-cloud) interface for Powersensor devices"
55authors = [
66 { name = " Jade Mattsson" , email = " jmattsson@dius.com.au" },
Original file line number Diff line number Diff line change @@ -124,10 +124,16 @@ async def yourcallback(event: dict)
124124 value: Y.Z,
125125 durations_s: N.M,
126126 }
127+
128+ The start function returns the number of found gateway plugs.
129+ Powersensor devices aren't found directly as they are typically not
130+ on the network, but are instead detected when they relay data through
131+ a plug via long-range radio.
127132 """
128133 self ._event_cb = async_event_cb
129134 await self ._on_scanned (await self ._ps .scan ())
130135 self ._timer = self ._Timer (EXPIRY_CHECK_INTERVAL_S , self ._on_timer )
136+ return len (self ._ips )
131137
132138 async def rescan (self ):
133139 """Performs a fresh scan of the network to discover added devices,
You can’t perform that action at this time.
0 commit comments