-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding more than one Tesla mixes up attributes #47506
Comments
Are you adding two accounts with the same vehicle? We generate the unique name based on the vin. Please add a debug log for teslajsonpy in your logger. You will need to scrub the logs before you post them. Please leave the last six digits of the vin or any numbers intact though. If this just occurred, we haven't changed any code related to this. |
Two cars: one called Red Wolf, the other Riding Hood. When I look at the log, it only sees the first Tesla (Red Wolf) and never retrieves the credentials for the second Tesla (Riding Hood).
|
Can't you just invite the second car to account number one? Then you get both car with just the same integration. This is how I have both my Teslas in HA (before the oauth change...) |
Ok, the issue is because we share a single websession with HA, we can't connect to two different accounts at once. As soon as the second account connects, it'll clobber the cookies for the first session and both accounts will be logged in to the same account duplicating the vehicles. So while each account think's it's logged in to separate accounts, it's pulling same vehicle into both accounts. The workaround for now is to add two vehicles to the same account. |
Good suggestion, @oscfor ! Works like a charm. |
Glad you got the workaround to work. Could you please submit it? I'm working on the code to fix it so you won't need the workaround, so if you can help out on the documentation I'd appreciate it. |
@alandtse Sure, I’ve updated the documentation and created the pull request. |
Thanks! I also have a PR fix if you wanted to test that. Unfortunately it will create two copies of your second car but it will at least let us know if it works. It should go away one you remove the extra account. |
Sure, lemme know. |
* Create new websession if more than one entry closes #47506 * Remove extraneous count * Always create new session * Update docs
* Bump HAP-python to 3.4.1 for homekit (home-assistant#48444) * Bump aiodiscover to 1.1.2 for dhcp (home-assistant#48445) * Remove myself as codeowner of HomematicIP Cloud (home-assistant#48437) * [ci skip] Translation update * Bump frontend to 20210328.0 * Address review comments from trace refactoring PRs (home-assistant#48288) * Speed up bond setup with gather (home-assistant#48454) * Bump aiodiscover to 1.2.0 in for dhcp (home-assistant#48456) - Additional optimizations * Fix template fan default speed count (home-assistant#48389) * Fix template fan default speed count The default speed count was defaulting to 3 when percentage was implemented instead of the documented value of 100 * Increase coverage * remove unreachable code * Fix broken trace tests (home-assistant#48458) * Fix knx tests (home-assistant#48407) * Log the reason a config entry failed to setup (home-assistant#48449) If we pass a string to ConfigEntryNotReady or raise it from another exception we now log the string passed or the string generated by the original exception. With home-assistant#47201 this makes it easy for developers to still show the reason why setup failed without having to worry about log spam from additional attempts by rasing ConfigEntryNotReady from the original exception. * Don't write 0 to next modbus register (home-assistant#48378) * Include platform only integrations in the manifest list api (home-assistant#48269) * Do not load ignored or disabled integrations at startup (home-assistant#48355) config_entries.async_setup will skip ignored and disabled integrations but bootstrap would still load them in memory even though they would never be setup. * Add support for Selectors in Script service fields (home-assistant#48469) * Fix unmute bug in vlc_telnet (home-assistant#48441) If volume was muted and media_player.volume_up is fired, VLC would still show up as muted. PR extracted from home-assistant#44776. * Allow specifying template entities based on triggers (home-assistant#48169) Co-authored-by: Martin Hjelmare <[email protected]> * Cloud: Expose if google is registered in status + check on login (home-assistant#48260) Co-authored-by: Paulus Schoutsen <[email protected]> * Command template support for MQTT fan (home-assistant#48413) * Command template support * Fix typo in abbreviations * Update homeassistant/components/mqtt/fan.py Co-authored-by: Erik Montnemery <[email protected]> * Fix initialize templates Co-authored-by: Erik Montnemery <[email protected]> * Add screenshot to manifest (home-assistant#48475) * Bump zwave-js-server-python to 0.23.0 to support zwave-js 7 (home-assistant#48094) * Bump zwave-js-server-python to 0.23.0 and update integration to support schema changes * refactor notification evenets a bit * fix tests and bug fixes * additional changes due to new PR * add command class and command name * use new event names so we can retain event property names * handle command status being returned from async_set_config_parameter * bump dependency version * adjust log message to be consistent * disable pylint warning * Update homeassistant/components/zwave_js/services.py Co-authored-by: Martin Hjelmare <[email protected]> * add test for awake node * switch async_get_registry to async_get Co-authored-by: Martin Hjelmare <[email protected]> * Make integration setup optional (home-assistant#48381) * Add 'for' to cover device triggers (home-assistant#48324) * Merge condition and action traces (home-assistant#48461) * Clean up icons & device classes for Toon (home-assistant#48471) * Allow MQTT entities to be disabled by default (home-assistant#48284) * Allow MQTT entities to be disabled by default * Tweak * Refactor fan device triggers to use ToggleEntity triggers (home-assistant#48321) * Bump aiodiscover to 1.3.0 to improve performance (home-assistant#48482) * Create async_config_entry_first_refresh to reduce coordinator boilerplate (home-assistant#48451) * Clean up superfluous integration setup - part 1 (home-assistant#48476) * Clean up superfluous integration setup - part 2 (home-assistant#48478) * Clean up superfluous integration setup - part 3 (home-assistant#48484) * Remove HomeAssistantType alias from entity components - Part 1 (home-assistant#48467) * Remove HomeAssistantType alias from entity components - Part 2 (home-assistant#48468) * Add asyncio locks to screenlogic api access points (home-assistant#48457) * [ci skip] Translation update * Bump aiodiscoer to 1.3.2 for dhcp (home-assistant#48489) - Removes unused code in the library - Cleanup a small slow memory leak * Add analytics integration (home-assistant#48256) Co-authored-by: Martin Hjelmare <[email protected]> * Add image proxy to Kodi media browser (home-assistant#47315) * Bump frontend to 20210329.0 * Add zwave_js.bulk_set_partial_config_parameters service (home-assistant#48306) * Add zwave_js.bulk_set_partial_config_parameters service * update to handle command status * add test for awake node * test using a device in service call * Update pylint to 2.7.3 (home-assistant#48488) * Update pylint to 2.7.3 * Add class-const-naming-style * Remove unused-import message * Additional cleanup * Create new websession if more than one entry in Tesla (home-assistant#47886) * Create new websession if more than one entry closes home-assistant#47506 * Remove extraneous count * Always create new session * Update docs * Make devolo home control more robust against connection losts (home-assistant#48328) * Fixed auth issue for non-2FA iCloud accounts (home-assistant#48455) * Add opentherm_gw option for setpoint override mode (home-assistant#48465) * Adding option for setpoint override mode Temporary setpoint override mode can now be set on or off. 'Constant' setpoint override mode will be used when Temporary is set to off * Changes after review comment Added default value for the setpoint override mode * Bump yalexs to 1.1.10 for august (home-assistant#48494) - Remove workaround for broken reconnect logic in pubnub * Use MAX_VOLUME constant in vlc_telnet (home-assistant#48491) We also don't need to call `int()` anymore due to underlying fixes in the python-vlc-telnet library. I believe this is the last item extracted from PR home-assistant#44776. * Include platform only integrations in analytics (home-assistant#48493) * Add zwave_js.set_value service (home-assistant#48487) Co-authored-by: Martin Hjelmare <[email protected]> * Add myself as codeowner to analytics (home-assistant#48498) * Update pylint to 2.7.4 (home-assistant#48500) * Add 'for' to alarm device triggers (home-assistant#48503) * Simplify device trigger code (home-assistant#48507) * Add support for capturing renewals to dhcp discovery (home-assistant#48242) * Add 'for' to vacuum device triggers (home-assistant#48506) * Add 'for' to vacuum device triggers * Apply suggestions from code review Co-authored-by: Martin Hjelmare <[email protected]> * Update test_device_trigger.py * Update test_device_trigger.py Co-authored-by: Martin Hjelmare <[email protected]> * Add 'for' to media_player device triggers (home-assistant#48505) * Add 'for' to media_player device triggers * Update tests/components/media_player/test_device_trigger.py Co-authored-by: Martin Hjelmare <[email protected]> * Update test_device_trigger.py Co-authored-by: Martin Hjelmare <[email protected]> * Add 'for' to lock device triggers (home-assistant#48504) * Add 'for' to lock device triggers * Update tests/components/lock/test_device_trigger.py Co-authored-by: Martin Hjelmare <[email protected]> * Update test_device_trigger.py Co-authored-by: Martin Hjelmare <[email protected]> * Raise Spotify exception if no active device found (home-assistant#48486) * Add discovery for Tube's Zigbee coordinators to ZHA (home-assistant#48420) * add discovery for tube zigbee gateways * update discovery * add test * another test * develop translations * review comments * Fix local mypy workflow (home-assistant#48433) * Fix local mypy workflow * Run mypy directly * Correct FAA Delays integration domain in manifest (home-assistant#48512) * Fix duplicates and unexpected failures during roomba discovery (home-assistant#48492) * KNX passive group addresses (home-assistant#48009) * Enable strict typing for zeroconf (home-assistant#48450) * Enable strict typing for zeroconf * Fix lutron_caseta * Fix pylint warning * Fix tests * Fix xiaomi_aqara test * Add __init__.py in homeassistant.generated module * Restore add_job with type: ignore * Add regex-based filters to logger component (home-assistant#48439) * Add regex-based filters to logger component * Switch logger filter tests to use caplog for more coverage, add a scoping test * Evaluate AirVisual interval on reboot (home-assistant#48392) * Reevaluate interval on reboot (and periodically) * AirVisual update interval periodically * AirVisual : update periodically interval request * AirVisual : update sever request interval periodically * AirVisual : periodically update interval for server requests * AirVisual : periodic update for server interval * Airvisual : periodic update of server interval * AirVisual : periodic update of server interval * AirVisual : periodic update of interval request * Periodic interval update of server request * AirVisual : periodic update of interval request * Reassess interval request on periodic event * ReAssess interval between 2 requests during update * ReAssess interval between 2 requests periodically * Reassess interval of server requests periodically * Reassess the interval between 2 server requests * Reassess interval between 2 server requests * Reassess server requests interval periodically * Assess interval request after inserting instance * Remove analytics from updater (home-assistant#48518) * support feedback for ZHA device reconfiguration (home-assistant#48447) * Fix init for first added shelly device (home-assistant#48411) * Search for areas used in automations and scripts (home-assistant#48499) Co-authored-by: Martin Hjelmare <[email protected]> Co-authored-by: Bram Kragten <[email protected]> Co-authored-by: Paulus Schoutsen <[email protected]> * Add target version to log about missing version (home-assistant#48520) Co-authored-by: Franck Nijhof <[email protected]> * [ci skip] Translation update * Bump Synology DSM to 1.0.2 (home-assistant#48528) * Bump Météo-France to 1.0.2 (home-assistant#48527) * Bump Freebox to 0.0.10 (home-assistant#48526) * Bump async_upnp_client to 0.16.0 (home-assistant#48521) * Shield async httpx call in generic (home-assistant#47852) * Shield async httpx call * Don't set last_url/last_image on cancellation * Add test * Fix Sonos Line-in favorites (home-assistant#48524) * Add support for ZHADoorLock locks to deCONZ integration(home-assistant#48516) * Deprecate SolarEdge YAML configuration (home-assistant#48533) * Remove if/else from modbus test cases (home-assistant#48514) * Add color_mode support to MQTT JSON light (home-assistant#47993) * Add vicare fuelcell (home-assistant#47167) * Bump pyhaversion from 3.4.2 to 21.3.0 (home-assistant#48537) * Add missing neato error status (home-assistant#48508) * Add Plex library count sensors (home-assistant#48339) * Use consolidated constant for "description" (home-assistant#48490) * Add id to automation triggers (home-assistant#48464) * Prevent ping integration from delaying startup (home-assistant#43869) * Ensure HA script and Python script services have a name (home-assistant#47204) Co-authored-by: Franck Nijhof <[email protected]> * Improve error handling for WS API trace/get (home-assistant#48502) * Set Plex sensor availability properly (home-assistant#48546) * Update xknx to version 0.17.5 (home-assistant#48522) Co-authored-by: Franck Nijhof <[email protected]> * Avoid divide by zero errors in tplink light integration (home-assistant#48235) * Fix update of surveillance_station data in Synology DSM (home-assistant#47966) * Remove Hass.io terms in strings.json (home-assistant#48541) Co-authored-by: Franck Nijhof <[email protected]> * Create homekit locks according to spec (home-assistant#48453) Any accessories, regardless of transport, that enable physical access to the home, such as door locks, must not be bridged. * Update frontend to 20210331.0 (home-assistant#48552) * Improve Plex device handling (home-assistant#48369) * Add operation sensor to Shelly Gas (home-assistant#48462) * Use Mapping[str, Any] instead of dict in Entity (home-assistant#48421) * Add Qingping Air Monitor Lite support support (home-assistant#48181) * Add cgllc.airm.cgdn1 support * review remarks * removed unnecessary lambdas * Use SOURCE_REAUTH constant for starting reauth flows (home-assistant#48553) * Improve automation trace tests (home-assistant#48542) * Provide the improved service UX with deCONZ services (home-assistant#48382) Co-authored-by: Franck Nijhof <[email protected]> * Add config flow support to google_travel_time (home-assistant#43509) * add config flow support to google_travel_time * fix bugs and add strings * fix import and add new test * address comments in home-assistant#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: Martin Hjelmare <[email protected]> * 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: Martin Hjelmare <[email protected]> * Bump version to 2021.5.0dev0 (home-assistant#48559) * Remove analytics from default_config (home-assistant#48566) * [ci skip] Translation update * Fix incorrect constant import in Ambient PWS (home-assistant#48574) * Remove device class timestamp from device condition and trigger (home-assistant#48431) * Remove unit from garmin connect * Remove unit from hvv departures * Remove device class timestamp from device condition and trigger * Remove unit from systemmonitor * Use device class constant for timestamp in ring * Cleanup orphan devices in onewire integration (home-assistant#48581) * Cleanup orphan devices (home-assistant#47438) * Refactor unit testing * Filter device entries for this config entry * Update logging * Cleanup check * Move cast config flow tests to test_config_flow (home-assistant#48362) * Return config entry details for 1-step config flows (home-assistant#48585) * Don't care about DPI entries when looking for clients to be restored from UniFi (home-assistant#48579) * DPI switches shouldnt be restored, they're not part of clients to be restored * Only care about Block and POE switch entries * Fix timer.finish to cancel callback (home-assistant#48549) Timer.finish doesn't cancel the callback, which can lead to incorrect early cancellation of the timer if it is subsequently restarted. Bug reported here: https://community.home-assistant.io/t/timer-component-timer-stops-before-time-is-up/96038 * Include script script_execution in script and automation traces (home-assistant#48576) * Add nws sensor platform (home-assistant#45027) * Resolve rebase conflict. Remove logging * lint: fix elif after return * fix attribution * add tests for None valuea * Remove Entity import Co-authored-by: Erik Montnemery <[email protected]> * Import SensorEntity Co-authored-by: Erik Montnemery <[email protected]> * Inherit SensorEntity Co-authored-by: Erik Montnemery <[email protected]> * remove unused logging * Use CoordinatorEntity * Use type instead of name. * add all entities * add nice rounding to temperature and humidity Co-authored-by: Erik Montnemery <[email protected]> * Only raise integrationnotfound for dependencies (home-assistant#48241) Co-authored-by: J. Nick Koston <[email protected]> Co-authored-by: Paulus Schoutsen <[email protected]> * Clean lazytox script (home-assistant#48583) * Allow templatable service target to support scripts (home-assistant#48600) * Upgrade numpy to 1.20.2 (home-assistant#48597) * Include blueprint input in automation trace (home-assistant#48575) * Typing improvements for SolarEdge (home-assistant#48596) * Remove Geizhals integration (ADR-0004) (home-assistant#48594) * Upgrade Astral to 2.2 (home-assistant#48573) * Fix websocket search for related (home-assistant#48603) Co-authored-by: Paulus Schoutsen <[email protected]> * Add zwave_js WS API command to call node.refresh_info (home-assistant#48564) * Add hive heat on demand (home-assistant#48591) * Update frontend to 20210402.0 (home-assistant#48609) * Clean up mobile app (home-assistant#48607) Co-authored-by: Martin Hjelmare <[email protected]> * Increase time out for http requests done in Axis integration (home-assistant#48610) * [ci skip] Translation update * Bump aioshelly to 0.6.2 (home-assistant#48620) * Add variables to execute script (home-assistant#48613) * Fix trigger template entities without a unique ID (home-assistant#48631) * Going async with denonavr (home-assistant#47920) Co-authored-by: J. Nick Koston <[email protected]> * Remove duplicate test case in modbus switch (home-assistant#48636) * Updated frontend to 20210402.1 (home-assistant#48639) * Support modern config for the trigger based template entity (home-assistant#48635) * [ci skip] Translation update * Add modbus CONF_VERIFY_STATE to new switch config (home-assistant#48632) Missed CONF_VERIFY_STATE in new switch config, when copying from old switch config. * Fix AEMET town timestamp format (home-assistant#48647) Datetime should be converted to ISO format. Signed-off-by: Álvaro Fernández Rojas <[email protected]> * Bump aiodiscover to 1.3.3 for dhcp (home-assistant#48644) fixes home-assistant#48615 * Make modbus WRITE_COIL use write_coils in case of an array (home-assistant#48633) * WRITE_COIL uses write_coils in case of an array. WRITE_REGISTER uses write_register/write_registers depending on whether value is singular or an array. WRITE_COIL is modified to be similar and uses write_coil/write_coils depending on whether value is singular or an array. * Update SERVICE_WRITE_COIL to allow list. * Add Compensation Integration (home-assistant#41675) * Add Compensation Integration Adds the Compensation Integration * Add Requirements add missing requirements to compensation integration * Fix for tests Fix files after tests * Fix isort ran isort * Handle ADR-0007 Change the configuration to deal with ADR-0007 * fix flake8 Fix flake8 * Added Error Trapping Catch errors. Raise Rank Warnings but continue. Fixed bad imports * fix flake8 & pylint * fix isort.... again * fix tests & comments fix tests and comments * fix flake8 * remove discovery message * Fixed Review changes * Fixed review requests. * Added test to test get more coverage. * Roll back numpy requirement Roll back numpy requirement to match other integrations. * Fix flake8 * Fix requested changes Removed some necessary comments. Changed a test case to be more readable. * Fix doc strings and continue * Fixed a few test case doc strings * Removed a continue/else * Remove periods from logger Removed periods from _LOGGER errors. * Fixes changed name to unqiue_id. implemented suggested changes. * Add name and fix unique_id * removed conf name and auto construct it * Add retry mechanism on onewire sysbus devices (home-assistant#48614) * Add retry mechanism on sysbus * Update tests * Move to async * Move blocking calls on the executor * Prevent config entry retry from blocking startup (home-assistant#48660) - If there are two integrations doing long retries async_block_till_done() will never be done * [ci skip] Translation update * Make sonos event asyncio (home-assistant#48618) * Only listen for zeroconf when the esphome device cannot connect (home-assistant#48645) * Optimize storage collection entity operations with asyncio.gather (home-assistant#48352) * Fix Raspi GPIO binary_sensor produces unreliable responses (home-assistant#48170) * Fix for issue home-assistant#10498 Raspi GPIO binary_sensor produces unreliable responses ("Doorbell Scenario") Changes overtaken from PR#31788 which was somehow never finished * Fix for issue home-assistant#10498 Raspi GPIO binary_sensor produces unreliable response. Changes taken over from PR31788 which was somehow never finished * Remove unused code (pylint warning) * Apply ConfigEntryNotReady improvements to PlatformNotReady (home-assistant#48665) * Apply ConfigEntryNotReady improvements to PlatformNotReady - Limit log spam home-assistant#47201 - Log exception reason home-assistant#48449 - Prevent startup blockage home-assistant#48660 * coverage * Upgrade pytest to 6.2.3 (home-assistant#48672) * Upgrade holidays to 0.11.1 (home-assistant#48673) * Remove modbus duplicate strings (home-assistant#48654) * Reuse HA constants for serial configuration. Reusing HA consts reduces the need for translation. Sort/group constants in const. * Change const name ATTR_* to CONF_* * Correct wrong import * ATTR_* for service and CONF_* for schemas. * Revert change to service call. * Rename CONF_TEMPERATURE -> ATTR_TEMPERATURE Avoid possible division problem in set_temperature. * Remove Social Blade integration (ADR-0004) (home-assistant#48677) * Remove Social Blade integration (ADR-0004) * Cleanup coveragerc * Add modbus write coils (home-assistant#48676) * Add missing function in class. write_coils was missing. * Remove dead code. The HA configuration secures that CONF_TYPE only contains legal values, so having an empty assert to catch unknown values is dead code. An empty assert is not informative. * Bump zwave_js dependency to 0.23.1 (home-assistant#48682) * Cleanup sonos (home-assistant#48684) - Remove unused code - Use async_add_executor_job - Enforce typing * Upgrade wakonlan to 2.0.0 (home-assistant#48683) * Use shared aiohttp.ClientSession in bond (home-assistant#48669) * [ci skip] Translation update * Add more device triggers to deCONZ integration (home-assistant#48680) * Limit log spam from rest and include reason in platform retry (home-assistant#48666) - Each retry was logging the error again - Now we set the cause of the PlatformNotReady to allow Home Assistant to log as needed * Fix sonos volume always showing 0 (home-assistant#48685) * Implement Ignore list for poll control configuration on Ikea devices (home-assistant#48667) Co-authored-by: Hmmbob <[email protected]> * Add config flow for enphase envoy (home-assistant#48517) Co-authored-by: Paulus Schoutsen <[email protected]> * Add emonitor integration (home-assistant#48310) Co-authored-by: Paulus Schoutsen <[email protected]> * Provide api to see which integrations are being loaded (home-assistant#48274) Co-authored-by: Paulus Schoutsen <[email protected]> * Update all systemmonitor sensors in one executor call (home-assistant#48689) Co-authored-by: Paulus Schoutsen <[email protected]> * Fix verisure deadlock (home-assistant#48691) * Add ClimaCell v4 API support (home-assistant#47575) * Add ClimaCell v4 API support * fix tests * use constants * fix logic and update tests * revert accidental changes and enable hourly and nowcast forecast entities in test * use variable instead of accessing dictionary multiple times * only grab necessary fields * add _translate_condition method ot base class * bump pyclimacell again to fix bug * switch typehints back to new format * more typehint fixes * fix tests * revert merge conflict change * handle 'migration' in async_setup_entry so we don't have to bump config entry versions * parametrize timestep test * Clean and optimize systemmonitor (home-assistant#48699) - Remove unneeded excinfo to _LOGGER.exception - Use f-strings - Switch last_boot to utc - Cache psutil/os calls used by multiple attributes in the same update cycle * Add a new weather integration - Met Éireann (home-assistant#39429) * Added a new weather integration - Met Éireann * Fix codespell error * Update met_eireann to use CoordinatorEntity * Remove deprecated platform setup * Fix merge conflict * Remove unnecessary onboarding/home tracking code * Use common strings for config flow * Remove unnecessary code * Switch to using unique IDs in config flow * Use constants where possible * Fix failing tests * Fix isort errors * Remove unnecessary DataUpdateCoordinator class * Add device info * Explicitly define forecast data * Disable hourly forecast entity by default * Update config flow to reflect requested changes * Cleanup code * Update entity naming to match other similar components * Convert forecast time to UTC * Fix test coverage * Update test coverage * Remove elevation conversion * Update translations for additional clarity * Remove en-GB translation * Add config flow for Waze Travel Time (home-assistant#43419) * Add config flow for Waze Travel Time * update translations * setup entry is async * fix update logic during setup * support old config method in the interim * fix requirements * fix requirements * add abort string * changes based on @bdraco review * fix tests * add device identifier * Update homeassistant/components/waze_travel_time/__init__.py Co-authored-by: J. Nick Koston <[email protected]> * fix tests * Update homeassistant/components/waze_travel_time/sensor.py Co-authored-by: Martin Hjelmare <[email protected]> * log warning for deprecation message * PR feedback * fix tests and bugs * re-add name to config schema to avoid breaking change * handle if we get name from config in entry title * fix name logic * always set up options with defaults * Update homeassistant/components/waze_travel_time/sensor.py Co-authored-by: Martin Hjelmare <[email protected]> * Update config_flow.py * Update sensor.py * handle options updates by getting options on every update * patch library instead of sensor * fixes and make sure first update writes the state * validate config entry data during config flow and entry setup * fix input parameters * fix tests * invert if statement * remove unnecessary else * exclude helpers from coverage * remove async_setup because it's no longer needed * fix patch statements Co-authored-by: J. Nick Koston <[email protected]> Co-authored-by: Martin Hjelmare <[email protected]> * [ci skip] Translation update * Add AMD Ryzen processor temperatur capability to systemmonitor (home-assistant#48705) * Small improvements for emonitor (home-assistant#48700) - Check reason for config abort - Abort if unique id is already configured on user flow - remove unneeded pylint * Bump pychromecast to 9.1.2 (home-assistant#48714) * Flag brightness support for MQTT RGB lights (home-assistant#48718) * Bump codecov/codecov-action from v1.3.1 to v1.3.2 (home-assistant#48716) Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from v1.3.1 to v1.3.2. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md) - [Commits](codecov/codecov-action@v1.3.1...9b0b9bb) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Abort discovery for unsupported doorbird accessories (home-assistant#48710) * Fix sync api use in alarm control panel test (home-assistant#48725) * Updated frontend to 20210406.0 (home-assistant#48734) * Fix infinite recursion in LazyState (home-assistant#48719) If LazyState cannot parse the attributes of its row as JSON, it prints a message to the logger. Unfortunately, it passes `self` as a format argument to that message, which causes its `__repr__` method to be called, which then tries to retrieve `self.attributes` in order to display them. This leads to an infinite recursion and a crash of the entire core. To fix, send the database row to be printed in the log message, rather than the LazyState object that wraps around it. * Allow reloading top-level template entities (home-assistant#48733) * Improve warnings on undefined template errors (home-assistant#48713) * Add doorsensor + coordinator to nuki (home-assistant#40933) * implemented coordinator + doorsensor * added async_unload_entry * small fixes + reauth_flow * update function * black * define _data inside __init__ * removed unused property * await on update & coverage for binary_sensor * keep reauth seperate from validate * setting entities unavailable when connection goes down * add unknown error when entity is not present * override extra_state_attributes() * removed unnecessary else * moved to locks & openers variables * removed doorsensorState attribute * changed config entry reload to a task * wait for reload * Fix systemmonitor IP address look-up logic (home-assistant#48740) * Bump pysonos to 0.0.42 to fix I/O in event loop (home-assistant#48743) fixes home-assistant#48732 Changelog: amelchio/pysonos@v0.0.41...v0.0.42 * Rename hassio config entry title to Supervisor (home-assistant#48748) * [ci skip] Translation update * Generate a seperate UUID for the analytics integration (home-assistant#48742) * Add custom integrations to analytics (home-assistant#48753) * Use microsecond precision for datetime values on MariaDB/MySQL (home-assistant#48749) Co-authored-by: Paulus Schoutsen <[email protected]> * New integration for Kostal Plenticore solar inverters (home-assistant#43404) * New integration for Kostal Plenticore solar inverters. * Fix errors from github pipeline. * Fixed test for py37. * Add more test for test coverage check. * Try to fix test coverage check. * Fix import sort order. * Try fix test code coverage . * Mock api client for tests. * Fix typo. * Fix order of rebased code from dev. * Add new data point for home power. * Modifications to review. Remove service for write access (for first pull request). Refactor update coordinator to not use the entity API. * Fixed mock imports. * Ignore new python module on coverage. * Changes after review. * Fixed unit test because of config title. * Fixes from review. * Changes from review (unique id and mocking of tests) * Use async update method. Change unique id. Remove _dict * Remove _data field. * Removed login flag from PlenticoreUpdateCoordinator. * Removed Dynamic SoC sensor because it should be a binary sensor. * Remove more sensors because they are binary sensors. * Met.no - only update data if coordinates changed (home-assistant#48756) * Solve cast delaying startup when discovered devices are slow to setup (home-assistant#48755) * Solve cast delaying startup when devices are slow to setup * Update homeassistant/components/cast/media_player.py Co-authored-by: Erik Montnemery <[email protected]> Co-authored-by: Erik Montnemery <[email protected]> * Do not activate Met.no without setting a Home coordinates (home-assistant#48741) * Upgrade pre-commit to 2.12.0 (home-assistant#48731) * Fix whitespace error in cast (home-assistant#48763) * Update frontend to 20210407.0 (home-assistant#48765) * Set AsusWRT mac_address and ip_address properties (home-assistant#48764) * Remove login details before logging SQL errors (home-assistant#48758) * Clean up google travel time code (home-assistant#48708) * Bump actions/upload-artifact from v2.2.2 to v2.2.3 (home-assistant#48761) Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from v2.2.2 to v2.2.3. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](actions/upload-artifact@v2.2.2...ee69f02) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update __init__.py (home-assistant#48659) This change solves that HMIP-RCV-1 is not found when used in a service call to invoke a virtual key (case-sensitivity problem). - https://community.home-assistant.io/t/homematic-hmip-rcv-50-not-working-with-virtual-key-any-more/249000 - https://github.com/danielperna84/pyhomematic/issues/368 * Update frontend to 20210407.1 (home-assistant#48778) * Reject nan, inf from generic_thermostat sensor (home-assistant#48771) * Remove doorbird recorder test workaround (home-assistant#48781) Apparently this is no longer needed * [ci skip] Translation update * Store Recollect Waste pickup dates in UTC (home-assistant#48690) * Store Recollect Waste pickup dates in UTC * Code review * Code review * Account for openweathermap 'dew_point' not always being present (home-assistant#48826) * Add Xiaomi Miio zhimi.airpurifier.mc2 (home-assistant#48840) * add zhimi.airpurifier.mc2 * fix issort * Fix iCloud extra attributes (home-assistant#48815) * Update xknx to version 0.18.0 (home-assistant#48799) * Return TP-Link sensor & light attributes as `float` rather than `string` (home-assistant#48828) * Check all endpoints for zwave_js.climate fan mode and operating state (home-assistant#48800) * Check all endpoints for zwave_js.climate fan mode and operating state * fix test * Add missing super call in Verisure Camera entity (home-assistant#48812) * Bump speedtest-cli to 2.1.3 (home-assistant#48861) * Correct wrong x in frontend manifest (home-assistant#48865) * Fix optional data payload in Prowl messaging service (home-assistant#48868) * Fix possibly missing changed_by in Verisure Alarm (home-assistant#48867) * Let recorder deal with event names longer than 32 chars (home-assistant#47748) * Fix subscribe_bootstrap_integrations to send events (home-assistant#48754) * Raise an exception when event_type exceeds the max length (home-assistant#48115) * raise an exception when event_type exceeds the max length that the recorder supports * add test * use max length constant in recorder * update config entry reloaded service name * remove exception string function because it's not needed * increase limit to 64 and revert event name change * fix test * assert exception args * fix test * add comment about migration * Add hive boost off functionality (home-assistant#48701) * Add boost off functionality * Added backwards compatibility * Update homeassistant/components/hive/services.yaml Co-authored-by: Martin Hjelmare <[email protected]> * Update homeassistant/components/hive/climate.py Co-authored-by: Martin Hjelmare <[email protected]> Co-authored-by: Martin Hjelmare <[email protected]> * Add manufacturer matching support to zeroconf (home-assistant#48810) We plan on matching with _airplay which means we need to able to limit to specific manufacturers to avoid generating flows for integrations with the wrong manufacturer * Fix mysensor cover closed state (home-assistant#48833) * Validate supported_color_modes for MQTT JSON light (home-assistant#48836) * Update frontend to 20210407.2 (home-assistant#48888) * Fix motion_blinds gateway signal strength sensor (home-assistant#48866) Co-authored-by: Martin Hjelmare <[email protected]> * Replace redacted stream recorder credentials with '****' (home-assistant#48832) * Test that we do not initialize bad configuration (home-assistant#48872) * Test that we do not initialize bad configuration * Simplify test as we are not calling a service * Catch expected errors and log them in rituals perfume genie (home-assistant#48870) * Add update error logging * Move try available to else * Remove TimeoutError * [ci skip] Translation update * Fix logic reversal in sonos update_media_radio (home-assistant#48900) * Don't get code_context when calling inspect.stack (home-assistant#48849) * Don't get code_context when calling inspect.stack * Update homeassistant/helpers/config_validation.py * Fix cpu temperature reporting for Armbian on Odroid (home-assistant#48903) Some systems expose cpu temperatures differently in psutil. Specifically, running armbian on the Odroid xu4 sbc gives the following temerature output: >>> pp.pprint(psutil.sensors_temperatures()) { 'cpu0-thermal': [ shwtemp(label='', current=54.0, high=115.0, critical=115.0)], 'cpu1-thermal': [ shwtemp(label='', current=56.0, high=115.0, critical=115.0)], 'cpu2-thermal': [ shwtemp(label='', current=58.0, high=115.0, critical=115.0)], 'cpu3-thermal': [ shwtemp(label='', current=56.0, high=115.0, critical=115.0)], } Since the cpu number is embedded inside the name, the current code can't find it. To fix this, check both the name and the constructed label for matches against CPU_SENSOR_PREFIXES, and add the appropriate label cpu0-thermal in the prefix list. While this is slightly less efficient that just generating the label and checking it, it results in easier to understand code. * Add fixtures for Axis rtsp client and adapt tests to use them (home-assistant#47901) * Add a fixture for rtsp client and adapt tests to use it * Better fixtures for RTSP events and signals * Bump pykodi to 0.2.4 (home-assistant#48913) * Allow template covers to have opening and closing states (home-assistant#47925) * Update "issur_melacha_in_effect" via time tracking (home-assistant#42485) * AEMET town timestamp should be UTC (home-assistant#48916) AEMET OpenData doesn't clarify if the hourly data timestamp is UTC or not, but after correctly formatting the town timestamp in ISO format, it is clear that the timestamp is provided as UTC value. Therefore, the only values not provided as UTC are the ones related to the specific daily and hourly forecast values. Signed-off-by: Álvaro Fernández Rojas <[email protected]> * Update Ezviz Component (home-assistant#45722) * Update Ezviz Component * Update Ezviz for pylint test * Update Ezviz component pylint tests * Update Ezviz component tests * Update Ezviz Component tests * Update Ezviz component pylint error * Fix ezviz component config flow tests * Update ezviz component * Update Ezviz component * Add sensor platforms * issue with requirements file * Update binary_sensor to include switches * Updates to Ezviz sensors * Removed enum private method. * Fix switch args * Update homeassistant/components/ezviz/switch.py Co-authored-by: Martin Hjelmare <[email protected]> * config flow checks login info * Config_flow now imports ezviz from camera platform * Update test * Updated config_flow with unique_id and remove period from logging * Added two camera services and clarified service descryptions in services.yaml * Fixed variable name mistake with new service * Added french integration translation * Config_flow add camera rtsp credentials as seperate entities, with user step and import step * rerun hassfest after rebase * Removed region from legacy config schema, removed logging in camera platform setup that could contain credentials, removed unused constant. * Regenerate requirements * Fix tests and add config_flow import config test * Added addition test to config_flow to test successfull camera entity create. * Add to tests method to end in create entry, config_flow cleanup, use entry instead of entry.data * Removed all services, sorted platforms in init file. * Changed RTSP logging to debug from warning. (Forgot to change this before commit) * Cleanup typing, change platform order, bump pyezviz version * Added types to entries, allow creation of main entry if deleted by validating existance of type * Config_flow doesn't store serial under entry data, camera rtsp read from entry and not stored in hass, removed duplicate abort if unique id from config flow * Fix test of config_flow * Update tests/components/ezviz/test_config_flow.py Co-authored-by: Martin Hjelmare <[email protected]> * Update tests/components/ezviz/test_config_flow.py Co-authored-by: Martin Hjelmare <[email protected]> * Update tests/components/ezviz/test_config_flow.py Co-authored-by: Martin Hjelmare <[email protected]> * Bumped pyezviz api version, added api pyezvizerror exception raised in api (on HTTPError), cleanup unused imports. * rebase * cleanup coordinator, bump pyezviz api version, move async_setup_entry to add entry options to camera entries. (order change) * Added discovery step in config_flow if cameras detected without rtsp config entry * Reload main integration after addition or completion of camera rtsp config entry * Add tests for discovery config_flow, added a few other output asserts * Camera platform call discover flow with hass.async_create_task. Fixes to config_flow for discovery step * Fix config_flow discovery, add check to legacy yaml camera platform import, move camera private method to camera import step * Remove not needed check from config_flow import step. * Cleanup config_flow * Added config_flow description for discovered camera * Reordered description in config_flow confim step. * Added serial to flow_step description for discovered camera, readded camera attributes for rtsp stream url (allows user to check RTSP cred), added local ip and firmware upgade available. * Bumped pyezviz version and changed region code to region url. (Russia uses a completly different url). PyEzviz adds a Local IP sensor, removed camera entity attributes. * Add RSTP describe auth check from API to config_flow * url as vol.in options in Config_flow * Config_flow changes to discovery step, added exceptions, fixed tests, added rtsp config validate module mock to test disovery confirm step * Add test for config_flow step user_camera * Added tests for abort flow * Extend tests on custom url flow step * Fix exceptions in config_flow, fix test for discovery import exception test * Bump pyezviz api version * Bump api version, added config_flow function to wake hybernating camera before testing credentials, removed "user camera" step from config flow not needed as cameras are discovered. * Create pyezviz Api instance for config_flow wake hybernating camera, fixed tests and added fixture to mock method * Added alarm_control_panel with support to arm/disarm all cameras, fixed camera is available attribute (returns 2 if unavailable, 1 if available) * Skip ignored entities when setup up camera RTSP stream * Remove alarm_control_panel, add additional config_flow tests * Cleanup tests, add tests for discovery_step. * Add test for config_flow rtsp test step1 exceptions * Removed redundant except from second step in test RTSP method * All tests to CREATE or ABORT, added step exception for general HTTP error so user can retry in case of trasient network condition * Ammended tests with output checks for step_id, error, data, create entry method calls. * bumped ezviz api now rases library exceptions. Config_flow, coordiantor and init raises library exceptions. Updated test sideeffect for library exceptions * Bump api version, Create mock ezviz cloud account on discovery tests first to allow more complete testing of step. * Add abort to rtsp verification method if cloud account was deleted and add tests * Update tests/components/ezviz/__init__.py Co-authored-by: Martin Hjelmare <[email protected]> * Update homeassistant/components/ezviz/const.py Co-authored-by: Martin Hjelmare <[email protected]> * Update tests/components/ezviz/__init__.py Co-authored-by: Martin Hjelmare <[email protected]> * Update homeassistant/components/ezviz/camera.py Co-authored-by: Martin Hjelmare <[email protected]> * Update homeassistant/components/ezviz/camera.py Co-authored-by: Martin Hjelmare <[email protected]> * Update homeassistant/components/ezviz/camera.py Co-authored-by: Martin Hjelmare <[email protected]> * Update homeassistant/components/ezviz/camera.py Co-authored-by: Martin Hjelmare <[email protected]> * Update homeassistant/components/ezviz/camera.py Co-authored-by: Martin Hjelmare <[email protected]> * Update homeassistant/components/ezviz/camera.py Co-authored-by: Martin Hjelmare <[email protected]> * Undo config import change to password key for yaml, move hass.data.setdefault to async_setup_entry and remove async_setup * Fixed tests by removing _patch_async_setup as this was removed from init. * Update homeassistant/components/ezviz/camera.py Co-authored-by: Martin Hjelmare <[email protected]> * Update homeassistant/components/ezviz/camera.py Co-authored-by: Martin Hjelmare <[email protected]> * Update homeassistant/components/ezviz/camera.py Co-authored-by: Martin Hjelmare <[email protected]> * Changed L67 on camera config to complete suggestion for cleanup Co-authored-by: Martin Hjelmare <[email protected]> Co-authored-by: J. Nick Koston <[email protected]> Co-authored-by: SukramJ <[email protected]> Co-authored-by: HomeAssistant Azure <[email protected]> Co-authored-by: Paulus Schoutsen <[email protected]> Co-authored-by: Erik Montnemery <[email protected]> Co-authored-by: mptei <[email protected]> Co-authored-by: Pim <[email protected]> Co-authored-by: Franck Nijhof <[email protected]> Co-authored-by: David McClosky <[email protected]> Co-authored-by: Martin Hjelmare <[email protected]> Co-authored-by: Bram Kragten <[email protected]> Co-authored-by: Jan Bouwhuis <[email protected]> Co-authored-by: Raman Gupta <[email protected]> Co-authored-by: Kevin Worrel <[email protected]> Co-authored-by: Joakim Sørensen <[email protected]> Co-authored-by: Tobias Sauerwein <[email protected]> Co-authored-by: Marc Mueller <[email protected]> Co-authored-by: Alan Tse <[email protected]> Co-authored-by: Guido Schmitz <[email protected]> Co-authored-by: Niccolo Zapponi <[email protected]> Co-authored-by: Martidjen <[email protected]> Co-authored-by: Philip Allgaier <[email protected]> Co-authored-by: David F. Mulcahey <[email protected]> Co-authored-by: Ruslan Sayfutdinov <[email protected]> Co-authored-by: Matthias Alphart <[email protected]> Co-authored-by: Jacob Shufro <[email protected]> Co-authored-by: jugla <[email protected]> Co-authored-by: Michael <[email protected]> Co-authored-by: Quentame <[email protected]> Co-authored-by: Steven Looman <[email protected]> Co-authored-by: uvjustin <[email protected]> Co-authored-by: Anders Melchiorsen <[email protected]> Co-authored-by: Robert Svensson <[email protected]> Co-authored-by: jan iversen <[email protected]> Co-authored-by: Nicolas Braem <[email protected]> Co-authored-by: Vincent Le Bourlot <[email protected]> Co-authored-by: jjlawren <[email protected]> Co-authored-by: Marvin Wichmann <[email protected]> Co-authored-by: Franck Nijhof <[email protected]> Co-authored-by: Mario Limonciello <[email protected]> Co-authored-by: LJU <[email protected]> Co-authored-by: Simone Chemelli <[email protected]> Co-authored-by: arturdobo <[email protected]> Co-authored-by: Aaron Bach <[email protected]> Co-authored-by: epenet <[email protected]> Co-authored-by: youknowjack0 <[email protected]> Co-authored-by: MatthewFlamm <[email protected]> Co-authored-by: Paulus Schoutsen <[email protected]> Co-authored-by: FMKaiba <[email protected]> Co-authored-by: Khole <[email protected]> Co-authored-by: Shay Levy <[email protected]> Co-authored-by: Oliver <[email protected]> Co-authored-by: Álvaro Fernández Rojas <[email protected]> Co-authored-by: Petro31 <[email protected]> Co-authored-by: mburget <[email protected]> Co-authored-by: Alexei Chetroi <[email protected]> Co-authored-by: Hmmbob <[email protected]> Co-authored-by: Dylan Gore <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Justin Paupore <[email protected]> Co-authored-by: Pascal Reeb <[email protected]> Co-authored-by: Stefan Agner <[email protected]> Co-authored-by: stegm <[email protected]> Co-authored-by: Daniel Hjelseth Høyer <[email protected]> Co-authored-by: Maciej Bieniek <[email protected]> Co-authored-by: Daniel Sack <[email protected]> Co-authored-by: Hans Kröner <[email protected]> Co-authored-by: starkillerOG <[email protected]> Co-authored-by: Marvin Wichmann <[email protected]> Co-authored-by: Johan Nenzén <[email protected]> Co-authored-by: Laszlo Magyar <[email protected]> Co-authored-by: Milan Meulemans <[email protected]> Co-authored-by: Phil Hollenback <[email protected]> Co-authored-by: Brandon Rothweiler <[email protected]> Co-authored-by: amitfin <[email protected]>
The problem
Using the front end Tesla integration feature, adding the first car goes fine, but adding a second car (with new credentials) only ‘finds’ the car that was added first - and then ‘steals’ all the attributes. This means under car 2 the attributes of car 1 are shown and car 1 does not have any attributes. I have previously added both cars without any issues, expect maybe 2021.1 was okay. In 2021.2 this was the first time I noticed it to be broken
What is version of Home Assistant Core has the issue?
core-2021.3.2
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Core
Integration causing the issue
Tesla
Link to integration documentation on our website
https://www.home-assistant.io/integrations/tesla/
Example YAML snippet
# Put your YAML below this line
Anything in the logs that might be useful for us?
# Put your logs below this line Platform tesla does not generate unique IDs. ID tesla_model_3_XXXXXX_door_lock already exists - ignoring lock.riding_hood_door_lock 11:52:20 – Lock (ERROR) - message first occurred at 8:53:37 and shows up 8 times Unexpected error fetching tesla data: '[->tesla VIN removed<-]' 11:51:09 – Tesla (ERROR) - message first occurred at 8:54:39 and shows up 178 times
Here’s the screen after adding car number 2: the mentioned car is actually car number one.
![FB6CC730-5F85-4E01-97E4-E45A36AC6411](https://user-images.githubusercontent.com/57011130/110204952-27913300-7e76-11eb-8cf2-02140132a5be.jpeg)
The text was updated successfully, but these errors were encountered: