Skip to content

Commit

Permalink
More typo's
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyK69 authored and rikroe committed Nov 17, 2020
1 parent 1b563ac commit 3d03477
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bimmer_connected/charging_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ def pre_entry_climatization_timer(self) -> dict:

@property
@backend_parameter
def prefered_charging_window(self) -> ChargingWindow:
"""Returns the prefered charging window."""
def preferred_charging_window(self) -> ChargingWindow:
"""Returns the preferred charging window."""
return ChargingWindow(self._state.attributes[SERVICE_CHARGING_PROFILE]['preferredChargingWindow'])

@property
Expand Down
4 changes: 2 additions & 2 deletions test/test_charging_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ def test_parse_i01(self):
state.charging_profile.pre_entry_climatization_timer[TimerTypes.TIMER_1].departure_time)
self.assertEqual('MONDAY', state.charging_profile.pre_entry_climatization_timer[TimerTypes.TIMER_1].weekdays[0])

self.assertEqual('05:02', state.charging_profile.prefered_charging_window.start_time)
self.assertEqual('17:31', state.charging_profile.prefered_charging_window.end_time)
self.assertEqual('05:02', state.charging_profile.preferred_charging_window.start_time)
self.assertEqual('17:31', state.charging_profile.preferred_charging_window.end_time)

0 comments on commit 3d03477

Please sign in to comment.