コード例 #1
0
ファイル: nest.py プロジェクト: robe16/HomeAutomation_v3
 def _getConfig(self):
     self._token = get_cfg_account_detail(self._account_id, "token")
     self._pincode = get_cfg_account_detail(self._account_id, "pincode")
     self._state = get_cfg_account_detail(self._account_id, "state")
     #
     token_exp = get_cfg_account_detail(self._account_id, "tokenexpiry")
     if bool(token_exp):
         self._tokenexpiry = datetime.datetime.strptime(token_exp, self._dateformat)
     else:
         self._tokenexpiry = False
コード例 #2
0
ファイル: nest.py プロジェクト: robe16/HomeAutomation_v3
 def _pincode(self):
     return get_cfg_account_detail(self._account_id, "pincode")
コード例 #3
0
ファイル: account.py プロジェクト: robe16/HomeAutomation_v3
 def _dvc_name(self):
     return get_cfg_account_detail(self._account_id, "name")