Skip to content

Commit

Permalink
use BLE proxy instead of MQTT Room for Rav4 presence
Browse files Browse the repository at this point in the history
  • Loading branch information
joelhawksley committed Dec 20, 2024
1 parent d98e3f8 commit 13a866a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/apis/home_assistant_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def car_needs_plugged_in?

return false unless rav4_entity.present? && west_charger_entity.present?

rav4_entity[:state] == "garage" && west_charger_entity[:state] == "not_connected"
rav4_entity[:state] == "home" && west_charger_entity[:state] == "not_connected"
end

def package_present?
Expand Down
2 changes: 1 addition & 1 deletion test/apis/home_assistant_api_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def test_car_needs_plugged_in
},
{
entity_id: "rav4",
state: "garage"
state: "home"
}
]

Expand Down

0 comments on commit 13a866a

Please sign in to comment.