Skip to content

Commit

Permalink
Missing property decorator added.
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi committed Mar 10, 2018
1 parent 0aa7af6 commit a696097
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions miio/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def hardware_version(self) -> Optional[str]:
return self.data["hw_ver"]
return None

@property
def mac_address(self) -> Optional[str]:
"""MAC address if available."""
if self.data["mac"] is not None:
Expand Down

0 comments on commit a696097

Please sign in to comment.