kuchel77 / diskspace

Disk space for a path. For use with Home Assistant
Apache License 2.0
10 stars 2 forks source link

Other Error: name 'path' is not defined #3

Closed wergio closed 4 years ago

wergio commented 4 years ago

I get this error (HASSIO in docker in Rpi4)

WARNING (SyncWorker_14) [custom_components.diskspace.sensor] Other Error: name 'path' is not defined

my conf:

sensor:
  - platform: diskspace
    name: SD Card
    path: "/"
    unit_of_measure: "GB"
kuchel77 commented 4 years ago

Hi,

I thought it should be fixed in 0.6 but it didn't seem to be. It should be fixed in 0.7.

If you check whether or not it has the line

_LOGGER.debug("Path %s", self._path)

rather than

_LOGGER.debug("Path %s", path)

Then the error should disappear.

wergio commented 4 years ago

fixed with ver 0.7 thanks