hemantkamalakar / google_fit_hass

A Home assistant custom component to get your fitness information using Google Fitness API.
25 stars 6 forks source link

Platform error sensor.google_fit - Integration 'google_fit' not found. #3

Closed souravj96 closed 4 years ago

souravj96 commented 4 years ago

I'm using the latest version of google fit component

I have created google token by following this link and my calendar is working fine. but when I adding the bellow code

sensor:

  - platform: google_fit
    name: sourav
    client_id: !secret google_client_id
    client_secret: !secret google_client_secret
    scan_interval: 300

I'm getting Platform error sensor.google_fit - Integration 'google_fit' not found. erron on Configuration validation here is my folder structure. image

did I miss anything?

hemantkamalakar commented 4 years ago

Please use following sensor definition

sensor:
  - platform: google_fit_hass
    name: sourav
    client_id: !secret google_client_id
    client_secret: !secret google_client_secret
    scan_interval: 300
souravj96 commented 4 years ago

Ohh! it works fine now. thank you!