Skip to content
Snippets Groups Projects
Unverified Commit aae0ccc5 authored by Raman Gupta's avatar Raman Gupta Committed by GitHub
Browse files

Add config flow support to google_travel_time (#43509)


* add config flow support to google_travel_time

* fix bugs and add strings

* fix import and add new test

* address comments in #43419 since this is a similar PR

* fix default name and test

* add unique ID and device info

* fix test

* feedback from waze PR

* continue incorporating feedback from waze PR

* final fixes and update tests

* call update in lambda

* Update homeassistant/components/google_travel_time/sensor.py

Co-authored-by: default avatarMartin Hjelmare <marhje52@gmail.com>

* additional fixes

* validate config entry data during config flow and config entry setup

* don't store entity

* patch dependency instead of HA code

* fixes

* improve tests by moving all patching to fixtures

* use self.hass instead of setting self._hass

* invert if

* remove unnecessary else

Co-authored-by: default avatarMartin Hjelmare <marhje52@gmail.com>
parent bc5d8285
No related branches found
No related tags found
No related merge requests found
Showing
with 952 additions and 187 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment