diff options
Diffstat (limited to 'database.py')
-rw-r--r-- | database.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/database.py b/database.py index 8b57d25..4782087 100644 --- a/database.py +++ b/database.py @@ -163,9 +163,6 @@ if __name__ == "__main__": if not os.path.exists(".docker"):
import dotenv
dotenv.load_dotenv(dotenv_path = "power.env")
- host = "srv.athome"
- else:
- host = None
- with PowerDatabase(host = host) as db:
+ with PowerDatabase() as db:
print(db.get_last_plug_readings())
|