mampfes / ha_epex_spot

Adds EPEX Spot data to Home Assistant.
MIT License
117 stars 20 forks source link

test script #127

Closed cnu80 closed 1 month ago

cnu80 commented 1 month ago

should the test scripts work out of the box ? It tried to execute it and I got:

 ./test_smartenergy.py 
Traceback (most recent call last):
  File "/home/cnu/git/ha_epex_spot/custom_components/epex_spot/./test_smartenergy.py", line 5, in <module>
    service = smartENERGY.smartENERGY(market_area="at")
TypeError: smartENERGY.__init__() missing 1 required positional argument: 'session'

thanks

mampfes commented 1 month ago

fixed in de9cbd8

I forgot to make the change for asyncio in the test scripts.