openclimatefix / pv-site-api

Site specific API for PV forecasting
5 stars 8 forks source link

Create inverter accessing points #80

Closed neha-vard closed 1 year ago

neha-vard commented 1 year ago

Pull Request

Description

Create the following endpoints:

/sites/<site_uuid>/inverters /inverters

Fixes #71

codecov[bot] commented 1 year ago

Codecov Report

Merging #80 (b0a2e6c) into h4i/enode (a506477) will increase coverage by 2.11%. The diff coverage is 98.43%.

@@              Coverage Diff              @@
##           h4i/enode      #80      +/-   ##
=============================================
+ Coverage      84.82%   86.93%   +2.11%     
=============================================
  Files              9        9              
  Lines            336      398      +62     
=============================================
+ Hits             285      346      +61     
- Misses            51       52       +1     
Impacted Files Coverage Δ
pv_site_api/main.py 90.00% <94.73%> (+0.52%) :arrow_up:
pv_site_api/_db_helpers.py 100.00% <100.00%> (ø)
pv_site_api/fake.py 100.00% <100.00%> (ø)
pv_site_api/pydantic_models.py 100.00% <100.00%> (ø)
pv_site_api/utils.py 100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more