fiftyfive 0.0.1__tar.gz → 0.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,4 +19,6 @@ venv.bak/
19
19
 
20
20
  __pypackages__
21
21
 
22
- analysis/
22
+ analysis/
23
+
24
+ .vscode
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fiftyfive
3
- Version: 0.0.1
3
+ Version: 0.2.0
4
4
  Summary: Python 3 package to retrieve EV charger data from 50five
5
5
  Project-URL: Homepage, https://github.com/Crazy-Duck/fiftyfive
6
6
  Project-URL: Bug Tracker, https://github.com/Crazy-Duck/fiftyfive/issues
@@ -16,6 +16,7 @@ class Market(StrEnum):
16
16
  NL = "nl"
17
17
  DE = "de"
18
18
  FR = "fr"
19
+ UK = "uk"
19
20
 
20
21
 
21
22
  class Api:
@@ -235,3 +235,73 @@ class Stop(Action):
235
235
  "clickedButtonId": 0,
236
236
  "channel": self.channel.id,
237
237
  }
238
+
239
+
240
+ class SoftReset(Action):
241
+ def __init__(self, channel: Channel):
242
+ self.channel = channel
243
+
244
+ @property
245
+ def params(self) -> dict[str, str | int]:
246
+ return {
247
+ "action": "SoftReset",
248
+ "rechargeSpotId": self.channel.recharge_spot_id,
249
+ "clickedButtonId": 0,
250
+ "channel": self.channel.id,
251
+ }
252
+
253
+
254
+ class HardReset(Action):
255
+ def __init__(self, channel: Channel):
256
+ self.channel = channel
257
+
258
+ @property
259
+ def params(self) -> dict[str, str | int]:
260
+ return {
261
+ "action": "HardReset",
262
+ "rechargeSpotId": self.channel.recharge_spot_id,
263
+ "clickedButtonId": 0,
264
+ "channel": self.channel.id,
265
+ }
266
+
267
+
268
+ class UnlockConnector(Action):
269
+ def __init__(self, channel: Channel):
270
+ self.channel = channel
271
+
272
+ @property
273
+ def params(self) -> dict[str, str | int]:
274
+ return {
275
+ "action": "UnlockConnector",
276
+ "rechargeSpotId": self.channel.recharge_spot_id,
277
+ "clickedButtonId": 0,
278
+ "channel": self.channel.id,
279
+ }
280
+
281
+
282
+ class Block(Action):
283
+ def __init__(self, channel: Channel):
284
+ self.channel = channel
285
+
286
+ @property
287
+ def params(self) -> dict[str, str | int]:
288
+ return {
289
+ "action": "Block",
290
+ "rechargeSpotId": self.channel.recharge_spot_id,
291
+ "clickedButtonId": 0,
292
+ "channel": self.channel.id,
293
+ }
294
+
295
+
296
+ class Unblock(Action):
297
+ def __init__(self, channel: Channel):
298
+ self.channel = channel
299
+
300
+ @property
301
+ def params(self) -> dict[str, str | int]:
302
+ return {
303
+ "action": "Unblock",
304
+ "rechargeSpotId": self.channel.recharge_spot_id,
305
+ "clickedButtonId": 0,
306
+ "channel": self.channel.id,
307
+ }
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "fiftyfive"
3
- version = "0.0.1"
3
+ version = "0.2.0"
4
4
  description = "Python 3 package to retrieve EV charger data from 50five"
5
5
  dependencies = [
6
6
  "aiohttp",
File without changes
File without changes
File without changes
File without changes