preheat_open.api.mocks.MockApiAdapter
- class preheat_open.api.mocks.MockApiAdapter(mocks_path='/home/docs/checkouts/readthedocs.org/user_builds/preheat-open/checkouts/stable/preheat_open/api')
Bases:
Adapter- __init__(mocks_path='/home/docs/checkouts/readthedocs.org/user_builds/preheat-open/checkouts/stable/preheat_open/api')
Methods
__init__([mocks_path])close()get_all_locations_collection()- rtype:
get_all_locations_information()- rtype:
list[LocationInformation]
get_comfort_profile_setpoints(date_range, ...)- rtype:
get_devices(location_id)- rtype:
list[Device]
get_electricity_prices(date_range, unit, ...)- rtype:
get_features(location_id)get_location(location_id)- rtype:
get_locations(location_ids)- rtype:
list[Location]
get_price_components(supply_point_ids)- rtype:
dict[int,list[AppliedPriceComponent]]
get_price_data(date_range, price_component_ids)- rtype:
dict[int,PriceData]
get_setpoint_schedule(date_range, control_unit)- rtype:
load_measurements(components, date_range[, ...])- rtype:
None
location_post_setup(location)open()put_setpoint_schedule(schedule, control_unit)- rtype:
Response
Attributes
building_modelmocks_path