foxesscloud 2.8.0__tar.gz → 2.8.1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: foxesscloud
3
- Version: 2.8.0
3
+ Version: 2.8.1
4
4
  Summary: library for accessing Fox ESS cloud data using Open API
5
5
  Author-email: Tony Matthews <tony@quasair.co.uk>
6
6
  Project-URL: Homepage, https://github.com/TonyM1958/FoxESS-Cloud
@@ -809,7 +809,7 @@ This setting can be:
809
809
 
810
810
  # Version Info
811
811
 
812
- 2.8.0<br>
812
+ 2.8.1<br>
813
813
  Update from v0 to v1 for scheduler API.
814
814
  PVEnergyTotal added to report variables.
815
815
  Fix residual if capacity is specified for charge_needed().
@@ -795,7 +795,7 @@ This setting can be:
795
795
 
796
796
  # Version Info
797
797
 
798
- 2.8.0<br>
798
+ 2.8.1<br>
799
799
  Update from v0 to v1 for scheduler API.
800
800
  PVEnergyTotal added to report variables.
801
801
  Fix residual if capacity is specified for charge_needed().
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "foxesscloud"
7
- version = "2.8.0"
7
+ version = "2.8.1"
8
8
  authors = [
9
9
  {name="Tony Matthews", email="tony@quasair.co.uk"},
10
10
  ]
@@ -10,7 +10,7 @@ By: Tony Matthews
10
10
  # ALL RIGHTS ARE RESERVED © Tony Matthews 2023
11
11
  ##################################################################################################
12
12
 
13
- version = "1.9.2"
13
+ version = "1.9.3"
14
14
  print(f"FoxESS-Cloud version {version}")
15
15
 
16
16
  debug_setting = 1
@@ -656,9 +656,12 @@ def get_battery(info=1, rated=None, count=None):
656
656
  battery['residual_handling'] = residual_handling
657
657
  battery['soh'] = None
658
658
  battery['soh_supported'] = False
659
+ if battery.get('status') is None:
660
+ battery['status'] = 0 if battery.get('volt') is None or battery['volt'] <= 0 else 1
659
661
  if battery.get('status') is None or battery['status'] != 1:
660
662
  output(f"** get_battery(): battery status not available")
661
663
  return None
664
+ battery['status'] = 1
662
665
  if battery.get('residual') is not None:
663
666
  battery['residual'] *= residual_scale / 10
664
667
  if battery['residual_handling'] == 2:
@@ -10,7 +10,7 @@ By: Tony Matthews
10
10
  # ALL RIGHTS ARE RESERVED © Tony Matthews 2024
11
11
  ##################################################################################################
12
12
 
13
- version = "2.8.0"
13
+ version = "2.8.1"
14
14
  print(f"FoxESS-Cloud Open API version {version}")
15
15
 
16
16
  debug_setting = 1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: foxesscloud
3
- Version: 2.8.0
3
+ Version: 2.8.1
4
4
  Summary: library for accessing Fox ESS cloud data using Open API
5
5
  Author-email: Tony Matthews <tony@quasair.co.uk>
6
6
  Project-URL: Homepage, https://github.com/TonyM1958/FoxESS-Cloud
@@ -809,7 +809,7 @@ This setting can be:
809
809
 
810
810
  # Version Info
811
811
 
812
- 2.8.0<br>
812
+ 2.8.1<br>
813
813
  Update from v0 to v1 for scheduler API.
814
814
  PVEnergyTotal added to report variables.
815
815
  Fix residual if capacity is specified for charge_needed().
File without changes
File without changes