Commit 01df132
committed
Add optional
Sometimes we might want to create a `Device` instance without it being managed by the device managed. This is for example, if we simply want to get a few attributes of a device if all we have is the MAC address. In that case, we create a Device instance, read the attributes and then forget about the instance.
Particularly of interest for sub classes of `DeviceManager` who want to decide on certain device properties if they then create a subclass instance of that `Device` or not.managed parameter to device c’tor1 parent 76ca20a commit 01df132
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
| 213 | + | |
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
222 | 226 | | |
223 | 227 | | |
224 | 228 | | |
| |||
236 | 240 | | |
237 | 241 | | |
238 | 242 | | |
239 | | - | |
| 243 | + | |
| 244 | + | |
240 | 245 | | |
241 | 246 | | |
242 | 247 | | |
| |||
0 commit comments