Commit 673c06d
Deprecation and sanity improvements (#179)
* semonitor: Replace isSet with is_set
The `isSet` is deprecated and an alias for `is_set`. Use that instead to
avoid deprecation warnings.
Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
* se/msg: Be a little bit more carefull with the hardcoded path
The path replacement function tries to remove `/se` from the full path.
However, if the path already contains `/se`, such as for example in
`/solaredge/semonitor/se/msg.py` the path gets completely messed up.
Instead, by using python's `removesuffix`, we get what we wanted.
Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
---------
Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Co-authored-by: Eric Buehl <715650+ericbuehl@users.noreply.github.com>1 parent 52b5256 commit 673c06d
2 files changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| |||
0 commit comments