projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Preformatted box that doesn't wrap the contents.
[python_utils.git]
/
smart_home
/
device.py
diff --git
a/smart_home/device.py
b/smart_home/device.py
index 06187d7a6578e2eaedb5d86e6173977d62b6288d..64302ad791b35131e597472547e81027c6ec4451 100644
(file)
--- a/
smart_home/device.py
+++ b/
smart_home/device.py
@@
-1,5
+1,13
@@
#!/usr/bin/env python3
#!/usr/bin/env python3
+# © Copyright 2021-2022, Scott Gasch
+
+"""Most basic definition of a smart device: it must have a name and a
+MAC address and may have some optional keywords. All devices have
+these whether they are lights, outlets, thermostats, etc...
+
+"""
+
import re
from typing import List, Optional
import re
from typing import List, Optional
@@
-7,6
+15,10
@@
import arper
class Device(object):
class Device(object):
+ """Most basic definition of a smart device: it must have a name and a
+ MAC address and may have some optional keywords. All devices have
+ these whether they are lights, outlets, thermostats, etc..."""
+
def __init__(
self,
name: str,
def __init__(
self,
name: str,