Skip to content

Commit

Permalink
Update victron.py (#213)
Browse files Browse the repository at this point in the history
* Update victron.py

* Update victron.py
  • Loading branch information
peterdudfield authored Oct 26, 2024
1 parent d608528 commit 13076b2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions quartz_solar_forecast/inverters/victron.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
from quartz_solar_forecast.inverters.inverter import AbstractInverter
from pydantic import Field
from pydantic_settings import BaseSettings, SettingsConfigDict
from ocf_vrmapi.vrm import VRM_API

try:
from ocf_vrmapi.vrm import VRM_API
except:
print("Tried to import ocf_vrmapi but couldnt, Victron Inverter functions won't work")

class VictronSettings(BaseSettings):
model_config = SettingsConfigDict(env_file='.env', extra='ignore')
Expand Down

0 comments on commit 13076b2

Please sign in to comment.